I'm developing a website using ASP.net 3.5, also I'm using MS Access 2013 for the database, in the code behind I write the following code, to get data from the db:
list = adapter.GetData().Rows.Cast<DataRow>().Select(row =>
new Item()
{
ID = Convert.ToInt32(row["ID"]),
gbName = (string)row["gbName"],
gbLocation = (string)row["gbLocation"],
gbBodyContent = (String)row["gbBodyContent"],
gbDate = (string)row["gbDate"]
}).ToList();
In the gbBodyContent
I choose "Long Text" as type, but when I put a long text, I'm receiving the following exception:
Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints.
Can any body explain this!?