Пример #1
0
 protected override void ConfigureMappings(FluentModelBuilderConfiguration configuration)
 {
     configuration.Add(
         From.AssemblyOf <EntityBase>(new TestConfiguration())
         .AddEntitiesFromAssemblyOf <EntityOneWannabe>()
         .UseOverridesFromAssemblyOf <EntityBase>()
         .UseOverridesFromAssemblyOf <EntityOneWannabe>());
 }
Пример #2
0
 protected override void ConfigureMappings(FluentModelBuilderConfiguration configuration)
 {
     configuration.Add(From.Empty().UseOverride(typeof(IdentityUserOverride)).Scope.PostModelCreating());
 }
Пример #3
0
 protected override void ConfigureMappings(FluentModelBuilderConfiguration configuration)
 {
     configuration.Add(From.Empty(new TestConfiguration()).UseConvention <Convention>());
 }
 protected override void ConfigureMappings(FluentModelBuilderConfiguration configuration)
 {
     configuration.Add(
         From.AssemblyOf <EntityBase>().Where(type => type.GetTypeInfo().IsSubclassOf(typeof(EntityBase))));
 }
 protected override void ConfigureMappings(FluentModelBuilderConfiguration configuration)
 {
     configuration.Add(From.Empty().Override <SingleEntity>().Override <OtherSingleEntity>());
 }
Пример #6
0
 protected override void ConfigureMappings(FluentModelBuilderConfiguration configuration)
 {
     configuration.Add(
         From.AssemblyOf <EntityBase>(new TestConfiguration()).Override <SingleEntity>());
 }
 protected override void ConfigureMappings(FluentModelBuilderConfiguration configuration)
 {
     configuration.Add(From.Empty(new TestConfiguration()).Override <EntityOne>().Override <SingleEntity>());
 }
 protected override void ConfigureMappings(FluentModelBuilderConfiguration configuration)
 {
     configuration.Add(From.Empty(new TestConfiguration()).UseConventionsFromAssemblyOf <SingleEntity>());
 }