The ADO.NET Entity Framework Extensions library contains a set of utility classes with additional functionality to Entity Framework CTP5.

The latest version is at


This class can be used to send you notification (or throw an exception) if model and database schema are out of sync.

	DbDatabase.SetInitializer<DatabaseContext>(new NotifyIfModelOutOfSync<DatabaseContext>());

	using (var db = new DatabaseContext())


This class can be used to make Entity Framework generate db schema for your models with respect to their parent namespace(s). For example if you have a model RiaLib.Data.Models.Membership.User then corresponding db table will be called [Membership].[User] instead of [dbo].[User] .

    public class DatabaseContext : DbContext
        protected override void OnModelCreating(ModelBuilder modelBuilder)
            modelBuilder.Conventions.Add(new TableSchemaConvention());

Want to participate in this project?

Last edited Mar 3, 2011 at 5:07 PM by koistya, version 4