Get Current Identity through Linq while adding a new entry to my database
public class Person {
int Id{get;set;}
string Name{get;set;}
}
and set Id as Itentity Feed
ARMSEntity _entities=new ARMSEntity();
_entities.AddObject('Person',obj);
Now I want to get the current Id that is inserted into the database.
Thanks for any help in Advance
No comments:
Post a Comment