Here now we look at the basic dataaccess methods.
.Find<>
.Get<>
Find(string hql)
 | Nhibernate dataaccess methods |
| using System;
| | 1:using System.Collections;
| | 2:using System.Collections.Generic;
| | 3:using System.Text;
| | 4:using NHibernate;
| | 5:using NHibernate.Cfg;
| | 6:using NHibernate.Expression;
| | 7:
| | 8:namespace MyNHibernateDataAccesslayer
| | 9:{
| | 10: public class DataAccessFunction
| | 11: { private static ISessionFactory factory;
| | 12: private ISession session;
| | 13: private ITransaction transaction;
| | 14: private IInterceptor interceptor;
| | 15: private bool isSessionCreator;
| | 16:
| | 17: }
| | 18:}
| | 19: |
|
Also look at the
.hbm file design
Asp.net, Ado.net, .Net Remoting, .Net
Webservice, SQL, XML, XSLT, WCF, WPF, WWF NHibernate, Ajax, Jquery, DHTML