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
Post a Comment