Exemplo n.º 1
0
 public void CloseConntion()
 {
     if (dbFacade != null)
     {
         //con.Close();
         //con.ConnectionString = "";
         //con = null;
         dbFacade = null;
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:OracleDAOBase"/> class.
 /// </summary>
 /// <param name="connectionName">Name of the connection.可以为空。</param>
 protected OracleDAOBase(string connectionName)
 {
     if (string.IsNullOrEmpty(connectionName))
     {
         dbFacade = DataBaseFacade.GetInstance();
     }
     else
     {
         dbFacade = DataBaseFacade.GetInstance(connectionName);
     }
 }
 private GpoSendDao(string connectionName)
 {
     if (string.IsNullOrEmpty(connectionName))
     {
         dbFacade = DataBaseFacade.GetInstance();
     }
     else
     {
         dbFacade = DataBaseFacade.GetInstance(connectionName);
     }
 }
Exemplo n.º 4
0
 private ClientUploadDao(string connectionName)
 {
     if (string.IsNullOrEmpty(connectionName))
     {
         dbFacade = DataBaseFacade.GetInstance();
     }
     else
     {
         dbFacade = DataBaseFacade.GetInstance(connectionName);
     }
     //con = dbFacade.OpenConnection();
 }
Exemplo n.º 5
0
 private ClientSyncDataDAO(string connectionName)
 {
     if (string.IsNullOrEmpty(connectionName))
     {
         dbFacade = DataBaseFacade.GetInstance();
     }
     else
     {
         dbFacade = DataBaseFacade.GetInstance(connectionName);
     }
     con  = dbFacade.OpenConnection();
     conn = dbFacade.OpenConnection();
 }
Exemplo n.º 6
0
 private ClientUploadDao()
 {
     dbFacade = DataBaseFacade.GetInstance();
     con      = dbFacade.OpenConnection();
 }
Exemplo n.º 7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:OracleDAOBase"/> class.
 /// </summary>
 protected OracleDAOBase()
 {
     dbFacade = DataBaseFacade.GetInstance();
 }
 private GpoSendDao()
 {
     dbFacade = DataBaseFacade.GetInstance();
 }
Exemplo n.º 9
0
        public static readonly String SEQ_GPO = "SEQ_GPO_USR";  //序列名 刘海超2007-8-16

        protected SqlDAOBase()
        {
            dbFacade = DataBaseFacade.GetInstance();
        }
Exemplo n.º 10
0
 private ClientSyncDataDAO()
 {
     dbFacade = DataBaseFacade.GetInstance();
     con      = dbFacade.OpenConnection();
     conn     = dbFacade.OpenConnection();
 }
Exemplo n.º 11
0
 public void Setup()
 {
     collectionId   = "products";
     dataBaseFacade = new DataBaseFacade <Product>(collectionId);
 }