I’ve enjoyed testing your solution for the Typed Data Set LINQ Entities scenario. It works for updates and deletes, but I have a problem getting it to work for inserts.
//this is the code that I’m using for the test
var db = new LinqTestService();
DsLinqTest ds = db.GetDsFromID(2);
ds.RootElement[0].ExtraInfo = “New value”; //this is updated ok.
var newrow = ds.SubRootElement.NewSubRootElementRow();
newrow.Name = “SubRoot2″;
newrow.RootElementRow = ds.RootElement[0];
ds.SubRootElement.AddSubRootElementRow(newrow); //after the save, the value is not inserted into the database
db.SaveDs(ds);
Hey
I have looked to your article: Typed Dataset Linq Entities. And found it very cool – So is there any kind of source code you could provide, to use the same idea in my project? – The link on the site is broken and so, I hope you can give me some help.
THX
August 22, 2008 at 2:41 pm |
Hi Alex,
I’ve enjoyed testing your solution for the Typed Data Set LINQ Entities scenario. It works for updates and deletes, but I have a problem getting it to work for inserts.
//this is the code that I’m using for the test
var db = new LinqTestService();
DsLinqTest ds = db.GetDsFromID(2);
ds.RootElement[0].ExtraInfo = “New value”; //this is updated ok.
var newrow = ds.SubRootElement.NewSubRootElementRow();
newrow.Name = “SubRoot2″;
newrow.RootElementRow = ds.RootElement[0];
ds.SubRootElement.AddSubRootElementRow(newrow); //after the save, the value is not inserted into the database
db.SaveDs(ds);
I would be more than happy to hear from you soon.
Thanks allot,
Michael
August 22, 2008 at 3:05 pm |
Michael Hello
Unfortunately there has so much time since I have used this library because we don’t use it.
I would really like to help you as soon as possible but due to workload, I can’t promise you anything.
But if you find anything please, inform me.
Thank you in advance.
Sorry.
April 3, 2009 at 3:52 pm |
Hey
I have looked to your article: Typed Dataset Linq Entities. And found it very cool – So is there any kind of source code you could provide, to use the same idea in my project? – The link on the site is broken and so, I hope you can give me some help.
THX
April 3, 2009 at 4:28 pm |
Harald I’m guessing you are talking about my article on codeproject?
I clicked the link on the source and it worked.
Anyway anyone who needs my comments about that article can comment on the article on codeproject it self
Thank you all.