Esempio n. 1
0
 public ScopeBuilder(AutoModelBuilder autoModelBuilder)
 {
     if (autoModelBuilder == null)
     {
         throw new ArgumentNullException(nameof(autoModelBuilder));
     }
     _autoModelBuilder = autoModelBuilder;
 }
 private void ApplyAlterations(AutoModelBuilder autoModelBuilder, IServiceProvider serviceProvider)
 {
     if (_alterationsApplied)
     {
         return;
     }
     foreach (var alteration in _alterationFactories.Select(x => x.Create(serviceProvider)).ToList())
     {
         alteration.Alter(autoModelBuilder);
     }
     _alterationsApplied = true;
 }