c# - Getting Identity Column of new record in Entity Framework? -


Can anyone help? I am using the unit structure and it's working well: -)

But I've just added a new record using an entity class

this._entities AddToUsers (user);

AddTo is created automatically .. and the user is my table ... all great but how do I return the identity column?

While calling a stored procedure, I have a stored procedure -

I think I can continue to use the stored procedure, but that means I want to use my user unit The square must be converted to the SQL parameter.

I am using EFExtensions.

And by adding once, do I need to make a change or some other call?

Any ideas ??

Thanks

Calling only. Save Changes will actually change the changes in the database - and then and only then, the identity value (if your area is identical to the INT identity) will be generated.

Mark


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -