Exemple #1
0
 private List <IDbDataParameter> parameters; //SO TIAP KALI USER CREATE INSTANCE ..AKAN RESET
 public DBWrapper(string connectionStringName)
 {
     dbFactory    = new DBWrapperFactory(connectionStringName);
     database     = dbFactory.CreateDatabase();
     providerName = dbFactory.GetProviderName();
     parameters   = new List <IDbDataParameter>(); //RESET
 }
Exemple #2
0
 /// <summary>
 /// Faris.. clear all resourses!
 /// </summary>
 public void Dispose()
 {
     database.Dispose();
     if (_dbConnection != null)
     {
         _dbConnection.Dispose();
     }
     _dbConnection = null;
     dbFactory     = null;
     database      = null;
     parameters    = null;
 }