public static void Configure(Action <IActiveRecordConfiguration> configurator) { if (current != null) { throw new Exception("ActiveRecord has already been configured."); } current = new ActiveRecordConfiguration(); configurator(Current); Current.MappingSource = Current.mappingSourceBuilder(); Current.AssertValid(); }
public static void Reset() { current = null; }