SagaDB.MSSQLOperator.Open C# (CSharp) Method

Open() public method

��SQL Server����
public Open ( ) : void
return void
        public void Open()
        {
            if (_conn.State != ConnectionState.Open)
            {
                try
                {
                    _conn.Open();
                }
                catch(Exception ex)
                {
                    Logger.ShowSQL(ex, null);
                }
            }
        }

Usage Example

Esempio n. 1
0
 public bool Connect()
 {
     if (!this.isconnected)
     {
         if (db.State == ConnectionState.Open)
         {
             this.isconnected = true; return(true);
         }
         try
         {
             db.Open();
         }
         catch (Exception) { }
         if (db != null)
         {
             if (db.State != ConnectionState.Closed)
             {
                 return(true);
             }
             else
             {
                 return(false);
             }
         }
     }
     return(true);
 }
All Usage Examples Of SagaDB.MSSQLOperator::Open