You can do the same start you did with the stored procediure. Except that in the _Inserted Event you do:
DbCommand command = e.Command;
string eid;
command.CommandText = "SELECT @@IDENTITY";
eid= command.ExecuteScalar().ToString();
Thursday
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment