标签:
需要给DbContext加上如下特性:
[DbConfigurationType(typeof(MySql.Data.Entity.MySqlEFConfiguration))] public class MyContext : DbContext { public MyContext() : base("name=MyContext") { } public DbSet<SyUser> SyUser { get; set; } }
解决Code First MySql数据库 Specified key was too long; max key length is 767 bytes异常
标签:
原文地址:http://www.cnblogs.com/weiweithe/p/5292730.html