数据迁移时一直提示:
ReportTransfer.DAL.GlobalAccountCodeModel: : EntityType 'GlobalAccountCodeModel' has no key defined. Define the key for this EntityType.
GlobalAccountCodes: EntityType: EntitySet 'GlobalAccountCodes' is based on type 'GlobalAccountCodeModel' that has no keys defined.
按以下方式排查
1.定义KEY;
2.查证数据库连接是否成功;
然一百度,google,均无所获,最终发现一弱智错误,没有把key所在字段定义为public