/// <summary> /// Sets the current config /// </summary> internal static void SetCurrent(Func <MicroCRUDConfig, MicroCRUDConfig> updater) { lock (LockObject) { var newValue = updater(current); current = newValue ?? throw new ArgumentException("Updater returned a null object"); } }
static MicroCRUDConfig() { var defaultSchemaFactory = new TableSchemaFactory(new DefaultTableNameFactory(), new DefaultColumnNameFactory()); current = new MicroCRUDConfig(MicroCRUD.Dialect.SqlServer2012, defaultSchemaFactory, true); }