Beispiel #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));
 }
Beispiel #2
0
 public static dynamic OpenNamedConnection(string connectionName)
 {
     return(DatabaseOpener.OpenNamedConnection(connectionName));
 }
Beispiel #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));
 }
Beispiel #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());
 }
Beispiel #5
0
 public static dynamic OpenConnection(string connectionString, string providerName, string schemaName)
 {
     return(DatabaseOpener.OpenConnection(connectionString, providerName, schemaName));
 }
Beispiel #6
0
 public static dynamic OpenNamedConnection(string connectionName, string schemaName = null)
 {
     return(DatabaseOpener.OpenNamedConnection(connectionName, schemaName));
 }
Beispiel #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));
 }