Meaningful Names for Navigation Properties using Entity Framework

前端 未结 3 1212
臣服心动
臣服心动 2020-12-10 13:39

I am using the ADO .NET Entity Framework to import my model from a database. A table in my db has a bunch of foreign keys, all with abstract names e.g. FKDevice132610

3条回答
  •  忘掉有多难
    2020-12-10 14:05

    Wondering if a search on "modelBuilder.Conventions.Remove" will lead you to a solution. I wish I could be more of a help but I am just starting to explore EF. Ran into a similar situation when I had multiple fields referring back to the same ID...and I do not remember what the work around was.

提交回复
热议问题