/// <summary>
 /// 
 /// </summary>
 /// <param name="setupConventionFinder"></param>
 /// <param name="configurator"></param>
 /// <returns></returns>
 public static AutoPersistenceModel NaturalPreset(this SetupConventionFinder<AutoPersistenceModel> setupConventionFinder,
                                                  [NotNull] Action<INaturalPresetConfigurator> configurator)
 {
     var source = new NaturalConventionsSource();
     configurator(source);
     return setupConventionFinder.AddSource(source);
 }
Пример #2
0
 public static void AddSource(this IPackageSourceStore self, string source, string name)
 {
     self.AddSource(new PackageSource(source, name));
 }
 public static AutoPersistenceModel StrictPreset(this SetupConventionFinder<AutoPersistenceModel> setupConventionFinder)
 {
     return setupConventionFinder.AddSource(new StrictConventionsSource());
 }