in

System.Data.SQLite

An open source ADO.NET provider for the SQLite database engine

Sqlite & Silverlight 4.0

Last post 09-10-2010 2:37 AM by lucwuyts. 16 replies.
Page 2 of 2 (17 items) < Previous 1 2
Sort Posts: Previous Next
  • 09-10-2010 2:23 AM In reply to

    • tobi88
    • Top 200 Contributor
    • Joined on 09-03-2010
    • Posts 9

    Re: Sqlite & Silverlight 4.0

     Okay i had a look at the manual but still the same problems:

    my Code:

    DataSet dataset = new DataSet();
    SQLiteDataAdapter adapter = new SQLiteDataAdapter(command.CommandText, con);
    try
                {
                    adapter.Fill(dataset);
                }

    my DateTimeFormat :

    tried both

    1) 2010-08-15 07:13:01

    2)  2010-08-15 07:13:01 +02:00

     

    Problem: I always get the following exception stack trace

     bei System.DateTimeParse.ParseExactMultiple(String s, String[ formats, DateTimeFormatInfo dtfi, DateTimeStyles style)
       bei System.DateTime.ParseExact(String s, String[ formats, IFormatProvider provider, DateTimeStyles style)
       bei System.Data.SQLite.SQLiteConvert.ToDateTime(String dateText)
       bei System.Data.SQLite.SQLite3.GetDateTime(SQLiteStatement stmt, Int32 index)
       bei System.Data.SQLite.SQLite3.GetValue(SQLiteStatement stmt, Int32 index, SQLiteType typ)
       bei System.Data.SQLite.SQLiteDataReader.GetValue(Int32 i)
       bei System.Data.SQLite.SQLiteDataReader.GetValues(Object[ values)
       bei System.Data.ProviderBase.DataReaderContainer.CommonLanguageSubsetDataReader.GetValues(Object[ values)
       bei System.Data.ProviderBase.SchemaMapping.LoadDataRow()
       bei System.Data.Common.DataAdapter.FillLoadDataRow(SchemaMapping mapping)
       bei System.Data.Common.DataAdapter.FillFromReader(DataSet dataset, DataTable datatable, String srcTable, DataReaderContainer dataReader, Int32 startRecord, Int32 maxRecords, DataColumn parentChapterColumn, Object parentChapterValue)
       bei System.Data.Common.DataAdapter.Fill(DataSet dataSet, String srcTable, IDataReader dataReader, Int32 startRecord, Int32 maxRecords)
       bei System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[ datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
       bei System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
       bei System.Data.Common.DbDataAdapter.Fill(DataSet dataSet) 

     

     

    Any idea ?

  • 09-10-2010 2:37 AM In reply to

    Re: Sqlite & Silverlight 4.0

    If you make a little test app, with a data file, i will have a quick look at it later today or tomorrow (i' m out off the office most of the day today)

    regards,

    Luc

    Luc Wuyts
    http://www.a-d-e.net
Page 2 of 2 (17 items) < Previous 1 2
Powered by Community Server (Commercial Edition), by Telligent Systems