Answer the question
In order to leave comments, you need to log in
LINQ TO SQL. Get the id of the added post
How can I get the id of the entry added to the table. I use LINQ TO SQL.
Adding an entry:
Is it possible to do this without calling select on this entry?
DISC disc = new DISC();
disc.DISC_DATE = basecddate;
disc.CHART_TYPE = 3;
disc.DISC_NUMBER = week;
disc.DISC_TYPE = 1;
contex.DISC.InsertOnSubmit(disc);
contex.SubmitChanges();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question