当前位置: 动力学知识库 > 问答 > 编程问答 >

c# - SQLite not updated using DataSet

问题描述:

I have a wpf application and I'm using SqLite as a DB. In the app I have a DataSet, I can get the table but cannot update it, it return an error:

SQLite error

near ".": syntax error

The code:

 try

{

sqlite.Open();

DEDataSetTableAdapters.DEMainDataTableAdapter ta = new DEDataSetTableAdapters.DEMainDataTableAdapter();

ta.Update(table);

sqlite.Close();

return true;

}

catch (Exception e)

{

Helpers.DEException.SaveException(e);

return false;

}

Is this the right way to do it and I have some syntax error, or am I on the wrong path here?

googling it found nothing similar.

Thanks

分享给朋友:
您可能感兴趣的文章:
随机阅读: