Exemplo n.º 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();
 }
Exemplo n.º 2
0
 public static void Reset()
 {
     current = null;
 }