in

DotNetMarche

.NET Framework User Group delle Marche

This Blog

Syndication

ExternalBlogs

NHibernate ICriteria and composite-id with key-many-to-one

Suppose you have a legacy database, and an entity called ViewOfBaseData that have this id. <composite-id class="ViewOfBaseDataId" name="Id" > <key-many-to-one class="LinkResult" name="Link" column="AnalysisId" lazy="proxy" /> <key-property name="AnalysisDate" type="System.DateTime" column="AnalysisDate" /> </composite-id> Now suppose you need to retrieve all object ViewOfBaseData linked to a LinkResult object with a property KeyList [...]

Read the complete post at http://feedproxy.google.com/~r/AlkampferEng/~3/f_Prt8Pjfro/

Powered by Community Server (Commercial Edition), by Telligent Systems