Exemplo n.º 1
0
 protected override void ConfigureMappings(FluentModelBuilderConfiguration configuration)
 {
     configuration.Add(
         From.AssemblyOf <EntityBase>(new TestConfiguration())
         .AddEntitiesFromAssemblyOf <EntityOneWannabe>()
         .UseOverridesFromAssemblyOf <EntityBase>()
         .UseOverridesFromAssemblyOf <EntityOneWannabe>());
 }
Exemplo n.º 2
0
 protected override void ConfigureMappings(FluentModelBuilderConfiguration configuration)
 {
     configuration.Add(From.Empty().UseOverride(typeof(IdentityUserOverride)).Scope.PostModelCreating());
 }
Exemplo n.º 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>());
 }
Exemplo n.º 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>());
 }