nHibernate Insert without select -


i have entity mapping

    public locationurlmaskmapping()     {         schema("dbo");          id(x => x.id).generatedby.assigned();         map(x => x.cfgid);          table("locationurlmasks");          references(m => m.location, "locationid");     } 

each time when tried insert new locationurlmask (using persist ot save) makes select query location table.

as understand problem objects in session cache , in entity not equal reference. how can avoid select?


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -