none
How to log Entity Framework 4.3 Beta 1 migrations

    Question

  • I am just trying it out the new Code First migrations version. 

    I am going the "magic" track most of the time, so I've found it really useful in previous version to add some logging such as:

    new DbMigrator(.....);
    dbMigrator.Update(MigratorEventHandler);
    ...
    private void MigratorEventHandler(object sender, DbMigrationEventArgs e)
    {
      _log.Info(string.Format("Migration event {0}", e.ToString()));
    }
    

    Where did this option go in the latest release?
    Sunday, January 15, 2012 9:40 PM

All replies