entity framework - Naming two Foreign Keys in the same object -
i have 2 foreing keys in table "car" related same table "image".
when i'm checking tt files image objects have followed names: ( image / image1 )
what need if want same name provided on fk? "frontimage/backimage"??
foreing key relationship identity:
fk_car_frontimage fk_car_backimage
ef:
public partial class car{ public long id { get; set; } public nullable<long> frontimageid { get; set; } public nullable<long> backimageid { get; set; } public virtual image image { get; set; } public virtual image image1 { get; set; } }
Comments
Post a Comment