I
Ilyas
Hi all
I have the folowing code:
NorthwindDataContext nw1 = new NorthwindDataContext();
Category c1 = new Category();
c1.CategoryID = 1;
c1.CategoryName = "New Category2";
nw1.SubmitChanges();
//Note that the category name is
Category c2 = (from c in nw1.Categories where
c.CategoryID==1 select c).Single();
Assert.AreEqual(c1.CategoryName , c2.CategoryName);
This last line is not true meaning that the value of the Category
hasnt been updated? Why is this? Wha do I need to do to get this to
work as I would expect?
Many thanks
I have the folowing code:
NorthwindDataContext nw1 = new NorthwindDataContext();
Category c1 = new Category();
c1.CategoryID = 1;
c1.CategoryName = "New Category2";
nw1.SubmitChanges();
//Note that the category name is
Category c2 = (from c in nw1.Categories where
c.CategoryID==1 select c).Single();
Assert.AreEqual(c1.CategoryName , c2.CategoryName);
This last line is not true meaning that the value of the Category
hasnt been updated? Why is this? Wha do I need to do to get this to
work as I would expect?
Many thanks