예제 #1
0
 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();
 }
예제 #2
0
 public static void Reset()
 {
     current = null;
 }