Exemplo n.º 1
0
        /// <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>();
        }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AdoSqlServerDataLayerFactory"/> class.
 /// </summary>
 /// <param name="connection">The connection.</param>
 public AdoSqlServerDataLayerFactory(DbSqlConnection connection) : base(connection)
 {
 }