예제 #1
0
 /// <summary>
 /// 以 <paramref name="providerName"/> 作为数据库提供程序名称初始化 <see cref="DbScriptParameterParser"/> 类型的实例。
 /// </summary>
 /// <param name="providerName">数据库提供程序名称</param>
 public DbScriptParameterParser(string providerName)
 {
     Check.NotEmpty(providerName, "providerName");
     DbProviderFactoryExtensions.CheckProviderNameRegisted(providerName);
     this._providerName = providerName;
 }
예제 #2
0
 /// <summary>
 /// 以 <paramref name="providerName"/> 作为数据库提供程序名称初始化 <see cref="DatabaseFactory"/> 对象。
 /// </summary>
 /// <param name="providerName">数据库提供程序名称。</param>
 public DatabaseFactory(string providerName)
 {
     Check.NotEmpty(providerName, "providerName");
     DbProviderFactoryExtensions.CheckProviderNameRegisted(providerName);
     this._providerName = providerName;
 }
예제 #3
0
 /// <summary>
 /// 以指定的数据库连接字符串和数据库提供程序名称初始化 <see cref="NDF.Data.Common.Database"/> 对象。
 /// </summary>
 /// <param name="connectionString">数据库连接字符串。</param>
 /// <param name="providerName">数据库提供程序名称。</param>
 protected Database(string connectionString, string providerName)
 {
     DbProviderFactoryExtensions.CheckProviderNameRegisted(providerName);
     this._providerName     = providerName;
     this.PrimitiveDatabase = this.GetPrimitiveDatabase(connectionString);
 }