0
有沒有辦法在efcodefirst中首先創建帶代碼(模型)的複合鍵。EFCodeFirst ctp 5複合主鍵
ATM我有這個
[Key]
public string ResourceType { get; set; }
public string CultureCode { get; set; }
public string ResourceKey { get; set; }
public string ResourceValue { get; set; }
我需要的資源型+的ResourceKey是複合鍵。
可能的複製[複合鍵與EF 4.1代碼優先](http://stackoverflow.com/questions/5466374/composite-key-with-ef-4-1-code -第一) – 2011-05-02 14:24:59