Sep 14, 2016 08:23 AM|sudip_inn|LINK
i have test your first code but that fail to solve my situation. i did test your second one
public class MyClass
below two approach works for me.
protected override void OnModelCreating(DbModelBuilder modelBuilder)
code taken from here http://stackoverflow.com/a/6143116/6188148
we can follow this approach too.
public partial class AddingvwCustomer : DbMigration
public override void Up()
public override void Down()