示例#1
0
 /// <summary>
 /// Opens an instance of <see cref="Database"/> which connects to the SQL CE database
 /// specified in the filename parameter.
 /// </summary>
 /// <param name="filename">The name of the SQL CE database file.</param>
 /// <returns>A <see cref="Database"/> object as a dynamic type.</returns>
 public static dynamic OpenFile(string filename)
 {
     return(DatabaseOpener.OpenFile(filename));
 }
示例#2
0
 public static dynamic OpenNamedConnection(string connectionName)
 {
     return(DatabaseOpener.OpenNamedConnection(connectionName));
 }
示例#3
0
 /// <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));
 }
示例#4
0
 /// <summary>
 /// Opens an instance of <see cref="Database"/> which connects to an ADO.NET data source
 /// specified in the 'Simple.Data.Properties.Settings.ConnectionString' config ConnectionStrings setting.
 /// </summary>
 /// <returns>A <see cref="Database"/> object as a dynamic type.</returns>
 public static dynamic Open()
 {
     return(DatabaseOpener.OpenDefault());
 }
示例#5
0
 public static dynamic OpenConnection(string connectionString, string providerName, string schemaName)
 {
     return(DatabaseOpener.OpenConnection(connectionString, providerName, schemaName));
 }
示例#6
0
 public static dynamic OpenNamedConnection(string connectionName, string schemaName = null)
 {
     return(DatabaseOpener.OpenNamedConnection(connectionName, schemaName));
 }
示例#7
0
 /// <summary>
 /// Opens an instance of <see cref="Database"/> which connects to an ADO.NET data source
 /// specified in the 'Simple.Data.Properties.Settings.ConnectionString' config ConnectionStrings setting.
 /// </summary>
 /// <returns>A <see cref="Database"/> object as a dynamic type.</returns>
 public static dynamic Open(string schemaName = null)
 {
     return(DatabaseOpener.OpenDefault(schemaName));
 }