Пример #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>();
        }