开发者

entity framework - naming of model with same types

开发者 https://www.devze.com 2023-01-09 03:33 出处:网络
I have 2 tables: Bikes and Wheels. Bike has 2 FKs to Wheels: Bike.FrontWheelID and Bike.BackWheelID. EF maps these onto Bike.Wheel and Bike.Wheel1, just using their type for name, which I 开发者_如何学

I have 2 tables: Bikes and Wheels. Bike has 2 FKs to Wheels: Bike.FrontWheelID and Bike.BackWheelID. EF maps these onto Bike.Wheel and Bike.Wheel1, just using their type for name, which I 开发者_如何学JAVAwould prefer to avoid.

Is there a way to change this that would survive further regenerations of model from db schema? (some setting perhaps?)

Thanks


You can rename those properties in Entity Model Designer and it will not affect further regenerations of the model.

0

精彩评论

暂无评论...
验证码 换一张
取 消