2011-05-02 3 views
0

먼저 코드 (모델)를 사용하여 efcodefirst에서 복합 키를 만드는 방법이 있습니까?EFCodeFirst ctp 5 복합 기본 키

기압 나는이

[Key] 
    public string ResourceType { get; set; } 
    public string CultureCode { get; set; } 
    public string ResourceKey { get; set; } 
    public string ResourceValue { get; set; } 

내가 복합 키로 ResourceType에 + resourcekey 필요가 있습니다.

+2

가능한 [Composite Key with EF 4.1 Code First] (http://stackoverflow.com/questions/5466374/composite-key-with-ef-4-1-code -먼저) –

답변