Hi everyone,
How can I get a record id after saving it into database. Which I mean is actually something like that.
I have Document class (which is entity tho from DataBase) and I create an instance like
Document doc = new Document() {title="Math",name="Important"};
dataContext.Documents.InsertOnSubmit(doc);
dataContext.SubmitChanges();
than what I want is to retrieve it's id value (docId) which is located in database and it's primary key also automatic number. One thing, there will be lots of users on the system and submits tons of records like that.
Thanks in advance everybody :)