asp.net - Multiple FK on same column in EF with VB -


i have class called event_game_schedule

in class, have,

seasonid string foreignkey("hometeam") hometeamid string foreignkey("visitorteam") visitorteamid string  public overridable property hometeam team public overridable property visitorteam team 

i have public override of hometeam team , visitorteam team works great cause link using on 2 ids ..as team pk teamid

what want change team teamseason -- problem teamseason needs teamid,seasonid pk

<foreignkey("visitorteam","hometeam"),column(order:=1)> seasonid string <foreignkey("hometeam"),column(order:=0)> hometeamid string <foreignkey("visitorteam"),column(order:=0)> visitorteamid string 

public overridable property hometeam team public overridable property visitorteam team

i have been unable figure out how can use seasonid in multiple fk references @ same time in same class

it used reference season (but can season thru teamseason non issue.

how do this?

thanks


Comments

Popular posts from this blog

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

android - ConstraintLayout: Realign baseline constraint in case if dependent view visibility was set to GONE -

c# - Populating Gridview inside Listview ItemTemplate On Web User Control from Code Behind -