I can’t insert record to table
PODataContext db = new PODataContext();
test t = new test();
t.name = "name";
t.age = "dfd";
db.tests.InsertOnSubmit(t);
db.SubmitChanges();
My application is running perfectly. but inserted record is not there. But When I read from db it is working perfectly.
var s = from n in db.tests
select n;
foreach(var k in s)
{
MessageBox.Show(k.name);
}
Why is that ? (I have installed VS 2010 only) Please Help .!!
Thank You
Ensure what your table has Primary Key