/// <summary> /// Initializes a new instance of the <see cref="SqlServerDataLayer{T}"/> class. /// </summary> /// <param name="connection">The connection.</param> /// <exception cref="ArgumentNullException">connection</exception> public SqlServerDataLayer(DbSqlConnection connection) { _connection = connection ?? throw new ArgumentNullException(nameof(connection)); _formatter = new SqlCommadFormatter <T>(); }
/// <summary> /// Initializes a new instance of the <see cref="AdoSqlServerDataLayerFactory"/> class. /// </summary> /// <param name="connection">The connection.</param> public AdoSqlServerDataLayerFactory(DbSqlConnection connection) : base(connection) { }