Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In NHibernate ID Generator section in mapping files, What is the meaning of assigned and select?

In NHibernate ID Generator section in mapping files, What is the meaning of assigned and select?

like image 762
masoud ramezani Avatar asked Dec 21 '22 13:12

masoud ramezani


1 Answers

assigned means that you assign the primary key in code before saving the entity in the session.

select means it is assigned by the database, and it's obtained from the database by querying on some unique key.

like image 128
jason Avatar answered Feb 22 '23 09:02

jason