c# - NHibernate Caching Objects Based on Parent Class's ID -
I have the following definitions for animal and dog type: Note that the ID for the object is AnimalID: & lt; Class name = "Animal" table = "Animals" & gt; & Lt; Id name = "id" type = "System.Int32" column = "AnimalID" & gt; & Lt; Generator class = "identity" /> & Lt; / Id & gt; & Lt; Property Name = "Isbag" column = "Isbag" type = "System.Bool" no-null = "true" /> & Lt; / Square & gt; & Lt; Attached sub-class name = "dog" table = "dogs" expanded = "animal" & gt; & Lt; Key column = "AnimalID" /> & Lt; Property Name = "Owner ID" column = "Owner ID" type = "System.Int32" non-null = "true" /> & Lt; Property Name = "Eyesstong" column = "Iststong" type = "System.Bool" non-cord = "true" /> & ...