コード例 #1
0
 private void Dispose()
 {
     this.OnDispose();
     this.database                 = null;
     this.host                     = null;
     this.user                     = null;
     this.password                 = null;
     this.applicationName          = null;
     this.configuration            = null;
     this.connectionStringKey      = null;
     this.connectionStringCallback = null;
     this.ensureCreated            = null;
     this.ensureDeletedOnDispose   = null;
     this.ensureMigrate            = null;
 }
コード例 #2
0
 /// <summary>
 /// constructor copying parameters from another object
 /// </summary>
 /// <param name="other"></param>
 protected ContextConnectionParameters(ContextConnectionParameters other)
 {
     this.database                 = other.database;
     this.host                     = other.host;
     this.port                     = other.port;
     this.user                     = other.user;
     this.password                 = other.password;
     this.timeout                  = other.timeout;
     this.commandTimeout           = other.commandTimeout;
     this.idleLifetime             = other.idleLifetime;
     this.minPoolSize              = other.minPoolSize;
     this.maxPoolSize              = other.maxPoolSize;
     this.applicationName          = other.applicationName;
     this.readOnly                 = other.readOnly;
     this.sharedCache              = other.sharedCache;
     this.configuration            = other.configuration;
     this.connectionStringKey      = other.connectionStringKey;
     this.connectionStringCallback = other.connectionStringCallback;
     this.ensureCreated            = other.ensureCreated;
     this.ensureDeletedOnDispose   = other.ensureDeletedOnDispose;
     this.ensureMigrate            = other.ensureMigrate;
     this.grantDynamicContext      = other.grantDynamicContext;
     this.contextName              = other.contextName;
 }
コード例 #3
0
 internal Builder AddDefaultConnectionStringOperation(ConnectionStringFunction defaultConnectionStringCallback)
 {
     this.connectionStringCallback = defaultConnectionStringCallback;
     return(this);
 }