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; } }
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 } }