如何将 Keyword_Id = 1 的所有记录更新为 Keyword_Id = 2?
public class KeywordAddressCategory
{
[Key]
[Column("Keyword_Id", Order = 0)]
public int Keyword_Id { get; set; }
[Key]
[Column("Address_Id", Order = 1)]
public int Address_Id { get; set; }
[Key]
[Column("Category_Id", Order = 2)]
public int Category_Id { get; set; }
}
我收到一个异常,说我无法更新实体的键。
谢谢