コード例 #1
0
        public SqlDataProvider(Action <Configuration.ISqlServerProviderConfigurator> config)
        {
            var sqlConfig = new Configuration.SqlServerProviderConfigurator();

            if (config != null)
            {
                config.Invoke(sqlConfig);
                ConnectionStringBuilder          = sqlConfig._connectionStringBuilder;
                IdColumnNameBuilder              = sqlConfig._idColumnNameBuilder;
                JsonColumnNameBuilder            = sqlConfig._jsonColumnNameBuilder;
                LastUpdatedDateColumnNameBuilder = sqlConfig._lastUpdatedColumnNameBuilder;
                SchemaBuilder    = sqlConfig._schemaBuilder;
                TableNameBuilder = sqlConfig._tableNameBuilder;
            }
        }
コード例 #2
0
ファイル: SqlDataProvider.cs プロジェクト: tndungu/Audit.NET
        public SqlDataProvider(Action <Configuration.ISqlServerProviderConfigurator> config)
        {
            var sqlConfig = new Configuration.SqlServerProviderConfigurator();

            if (config != null)
            {
                config.Invoke(sqlConfig);
                ConnectionStringBuilder          = sqlConfig._connectionStringBuilder;
                IdColumnNameBuilder              = sqlConfig._idColumnNameBuilder;
                JsonColumnNameBuilder            = sqlConfig._jsonColumnNameBuilder;
                LastUpdatedDateColumnNameBuilder = sqlConfig._lastUpdatedColumnNameBuilder;
                SchemaBuilder    = sqlConfig._schemaBuilder;
                TableNameBuilder = sqlConfig._tableNameBuilder;
                CustomColumns    = sqlConfig._customColumns;
#if NET45
                SetDatabaseInitializerNull = sqlConfig._setDatabaseInitializerNull;
#endif
            }
        }