NotImplementedException while using SubmitChanges ( LINQ )
Posted: Fri 21 Aug 2009 17:29
imagine i got a table ( testtable) with 2 columns:
- id ( PK )
- value
and a function call like this:
public void main()
{
testtable t = new testtable();
t.id = 10;
t.value = "test";
Updatetesttable(t);
}
public void Updatetesttable(testtable t)
{
DataContext db = new DataContext();
db.testtables.SubmitChanges(t);
}
An entry with id=10 actually exists in the db, but:
The "bold" part of the source throws a "NotImplementedException"... How am i supposed to update a table when i DON'T have access to the DataContext where i made the select with?!?!
Thanks ( this is very urgent )!
- id ( PK )
- value
and a function call like this:
public void main()
{
testtable t = new testtable();
t.id = 10;
t.value = "test";
Updatetesttable(t);
}
public void Updatetesttable(testtable t)
{
DataContext db = new DataContext();
db.testtables.SubmitChanges(t);
}
An entry with id=10 actually exists in the db, but:
The "bold" part of the source throws a "NotImplementedException"... How am i supposed to update a table when i DON'T have access to the DataContext where i made the select with?!?!
Thanks ( this is very urgent )!