This project is read-only.

Record repository return created id

Topics: General, Troubleshooting, Writing modules
Oct 1, 2011 at 10:15 AM

Is it possible to retrieve the generated Id of a created record by a record repository and how?

I've managed to create this effect by creating a second manual id with a guid but i don't like this solution?

Oct 1, 2011 at 1:43 PM

nhibernate takes care of this I think....after calling Create method on your repository it will automatically map the generated Id to the Id property of your object

Oct 1, 2011 at 9:42 PM

Yes. Why do you need this?