/// <summary> /// Configures an MS SQL 2005 (or later) connection using the specified connection name, /// connection string string and provider name. /// </summary> /// <param name="configureConnection">The interface to configure a connection.</param> /// <param name="connectionName">The name for the connection.</param> /// <param name="connectionString">The connection string.</param> /// <param name="providerName">The name of the provider.</param> /// <returns>The next step in the fluent configuration.</returns> /// <exception cref="System.ArgumentNullException">Thrown if any argument is null.</exception> public static ICreateSessionFactory ForMsSql2005Connection(this IConfigureConnection configureConnection, string connectionName, string connectionString, string providerName) { if (configureConnection is null) { throw new ArgumentNullException(nameof(configureConnection)); } return(configureConnection.ForConnection(connectionName, connectionString, providerName, new MsSql2005Dialect(), new MsSqlDbDriver())); }
public static ICreateSessionFactory ForMsSql2005Connection(this IConfigureConnection configureConnection, string connectionName) { if (configureConnection == null) { throw new ArgumentNullException("configureConnection"); } return(configureConnection.ForConnection(connectionName, new MsSql2005Dialect(), new MsSqlDbDriver())); }
/// <summary> /// Configures a Firebird connection using the connection string with the specified name /// in the connection strings section of the app/web config. /// </summary> /// <param name="configureConnection">The interface to configure a connection.</param> /// <param name="connectionName">The name of the connection string in the app/web config.</param> /// <returns>The next step in the fluent configuration.</returns> /// <exception cref="System.ArgumentNullException">Thrown if any argument is null.</exception> /// <exception cref="ConfigurationException">Thrown if the connection is not found in the app config.</exception> public static ICreateSessionFactory ForFirebirdConnection(this IConfigureConnection configureConnection, string connectionName) { if (configureConnection is null) { throw new ArgumentNullException(nameof(configureConnection)); } return(configureConnection.ForConnection(connectionName, new FirebirdSqlDialect(), new FirebirdDbDriver())); }
/// <summary> /// Configures a Firebird connection using the specified connection name, /// connection string string and provider name. /// </summary> /// <param name="configureConnection">The interface to configure a connection.</param> /// <param name="connectionName">The name for the connection.</param> /// <param name="connectionString">The connection string.</param> /// <param name="providerName">The name of the provider.</param> /// <returns>The next step in the fluent configuration.</returns> /// <exception cref="System.ArgumentNullException">Thrown if any argument is null.</exception> public static ICreateSessionFactory ForFirebirdConnection(this IConfigureConnection configureConnection, string connectionName, string connectionString, string providerName) { if (configureConnection == null) { throw new ArgumentNullException("configureConnection"); } return(configureConnection.ForConnection(connectionName, connectionString, providerName, new FirebirdSqlDialect(), new FirebirdDbDriver())); }