mapping:
<class name="PromissoryNotes.Server.Data.BundleHistory,
PromissoryNotes.Server.Data" table="BUNDLEHISTORY" lazy="true">
    <id name="Id" column="ID" type="decimal">
      <generator class="seqhilo">
        <param name="sequence">SEQUENCE_BUNDLEHISTORY</param>
      </generator>
    </id>
    <component name="Bundle"
class="PromissoryNotes.Server.Data.Bundle,
PromissoryNotes.Server.Data">
      <property name="Id" column="BUNDLEID" type="decimal"></property>
    </component>
  </class>

class:
public class BundleHistory
    {
        public virtual Decimal Id { get; set; }
        public virtual Bundle Bundle { get; set; }
    }

c# code:
IQueryable<BundleHistory> historyList =
_coreRepository.GetBundlesHistory();

List<BundleHistory> list = historyList.Where(x => x.Bundle.Id ==
criteria.BundleId).ToList();

query:
SELECT this_.ID as ID33_0_,
this_.BUNDLEID.........................Where bundleitem1_.ID = :p0

--

You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.


Reply via email to