有没有办法先用code(model)在efcodefirst中创建一个组合键?
自动取款机我有这个
[Key]
public string ResourceType { get; set; }
public string CultureCode { get; set; }
public string ResourceKey { get; set; }
public string ResourceValue { get; set; }我需要resourcetype+resourcekey作为组合键。
发布于 2011-05-13 17:31:02
我找到了解决方案。它与此处提供的Composite Key with EF 4.1 Code First相同
https://stackoverflow.com/questions/5858270
复制相似问题