Friday, March 09, 2018

Alternate Entity Framework Migration Table


DbConfiguration

public class MyConfiguration : DbConfiguration { public MyConfiguration() { this.SetHistoryContext("System.Data.SqlClient", (connection, defaultSchema) => new ef6MigrationContext(connection, defaultSchema)); } }

HistoryContext

public class ef6MigrationContext : HistoryContext { public ef6MigrationContext(DbConnection dbConnection, string defaultSchema) : base(dbConnection, defaultSchema) { } protected override void OnModelCreating(DbModelBuilder modelBuilder) { base.OnModelCreating(modelBuilder); modelBuilder.Entity().ToTable(tableName: "__MigrationHistory", schemaName: "alt"); // modelBuilder.Entity().Property(p => p.MigrationId).HasColumnName("Migration_ID"); } }

Saturday, December 15, 2012

Kick the Baby Remix



I did the remix (music/samples) back in the 90's when I was dabbling with my home studio.

I may have to set up a new one, if I ever get the time and funds...