entity framework - Can EF Property be used for both composite [Key] and composite [ForeignKey] -


i have entity 2 properties, propa , propb. these properties used both composite key entity , composite keys when entity many side of one-to-many, e.g.

    [key, column(order=0)]     public string propa {get;set;}     [key, column(order=1)]     [public string propb {get;set;} 

this entity part of relationship , locate other entity in relationship composite key needs this:

    [foreign key, column(order=1)]     public string propa {get;set;}     [foreign key, column(order=0)]     public string propb {get;set;} 

is possible?

how configure w/ data annotations (preferably fluent api)?


Comments

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -