Esempio n. 1
0
 /// <summary>
 /// Creates a new instance of SqlServerCoconutDal, using the active connection from the CoconutDalConfigurationSection in app.config
 /// </summary>
 public SqlServerCoconutDal()
 {
     this.Connection       = CoconutDalConfigurationSection.GetEnvironmentConfig().ConnectionString;
     this._sqlDatabaseType = SqlVariant.SqlServer;
 }
Esempio n. 2
0
 /// <summary>
 /// Creates a new instance of SqlServerCoconutDal, using the named connection from the CoconutDalConfigurationSection in app.config
 /// </summary>
 /// <param name="connectionName">The name of a connection in CoconutDalConfigurationSection.Connections</param>
 /// <param name="sqlDatabaseType">The type of sql server instance</param>
 public SqlServerCoconutDal(string connectionName, SqlVariant sqlDatabaseType)
 {
     this.Connection       = CoconutDalConfigurationSection.GetEnvironmentConfig(connectionName).ConnectionString;
     this._sqlDatabaseType = sqlDatabaseType;
 }