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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -