This project is read-only.

AddFromNamedAssembly

Extensión method for ConfigurationRegistrar to use a named assembly as the assembly that contains all EntityTypeConfiguration clases to be added into ModelConfiguration.


        public class Context
            : DbContext
        {
            public DbSet<Blog> Blogs { get; set; }

            protected override void OnModelCreating(DbModelBuilder modelBuilder)
            {
                modelBuilder.Configurations.AddFromNamedAssembly("Miscelaneous");
            }
        }


Last edited Oct 21, 2013 at 7:14 PM by UnaiZorrilla, version 1