EF 4.1 messing things up. Has FK naming strategy changed?

前端 未结 2 1012
灰色年华
灰色年华 2020-12-17 21:35

I\'ve just installed the new Entity Framework 4.1 NuGet package, thus replacing the EFCodeFirst package as per NuGet intructions and this article of Sc

2条回答
  •  天命终不由人
    2020-12-17 22:12

    Unfortunately, one of the things that didn't make it to this release is the ability to add custom conventions in Code First:

    http://blogs.msdn.com/b/adonet/archive/2011/03/15/ef-4-1-release-candidate-available.aspx

    If you don't want to use the fluent API to configure the column name (which I don't blame you), then most straight forward way to do it is probably using sp_rename.

提交回复
热议问题