Esempio n. 1
0
 static FooContext()
 {
     var modelBuilder = new ModelBuilder();
     modelBuilder.DiscoverEntitiesFromContext(typeof(FooContext));
     modelBuilder.Entity<Foo>().HasKey(x => x.Identifier);
     model = modelBuilder.CreateModel();
 }