标签: c# entity-framework
如何在模型中附加关键项
public class ModelOne { public string FirstName { get; set; } public string LastName { get; set; } }
这里可以添加键例如
db.ModelOne.Where(a => a.FirstName == "John").AddKeyItem("isYoung", true);