Exemple #1
0
 public static YnDaoHelper GetInstance()
 {
     if (ynDaoHelper == null)
         ynDaoHelper = new YnDaoHelper();
     return ynDaoHelper;
 }
Exemple #2
0
 public static void Init(NHibernateType nHibernateType, XmlReader xmlReader, string connection_string)
 {
     try
     {
         if (ynDaoHelper == null)
         {
             ynDaoHelper = new YnDaoHelper(nHibernateType, xmlReader, connection_string);
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemple #3
0
 public static void Init(NHibernateType nHibernateType,string configFileName, XmlReader xmlReader, string connection_string, Assembly[] assemblys)
 {
     try
     {
         if (ynDaoHelper == null)
         {
             ynDaoHelper = new YnDaoHelper(nHibernateType,configFileName, xmlReader, connection_string, assemblys);
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemple #4
0
 public static void Init(NHibernateType nHibernateType, string configFileName)
 {
     try
     {
         if (ynDaoHelper == null)
         {
             ynDaoHelper = new YnDaoHelper(nHibernateType, configFileName);
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }