コード例 #1
0
 public ScopeBuilder(AutoModelBuilder autoModelBuilder)
 {
     if (autoModelBuilder == null)
     {
         throw new ArgumentNullException(nameof(autoModelBuilder));
     }
     _autoModelBuilder = autoModelBuilder;
 }
コード例 #2
0
 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;
 }