コード例 #1
0
ファイル: Database.Open.cs プロジェクト: zhaoyin/Simple.Data
 /// <summary>
 /// Opens an instance of <see cref="Database"/> which connects to an ADO.NET data source
 /// specified in the connectionString parameter.
 /// </summary>
 /// <param name="connectionString">The connection string.</param>
 /// <returns>A <see cref="Database"/> object as a dynamic type.</returns>
 public static dynamic OpenConnection(string connectionString)
 {
     return(DatabaseOpener.OpenConnection(connectionString));
 }
コード例 #2
0
 public static dynamic OpenConnection(string connectionString, string providerName, string schemaName)
 {
     return(DatabaseOpener.OpenConnection(connectionString, providerName, schemaName));
 }