windows phone中sqlite的Foregin键
我正在尝试使用类为表创建foregin键。我有一个类名person(它是我数据库中的表名) 班主任 { [主密钥,自动增量] 公共int ID{get;set;}windows phone中sqlite的Foregin键,sqlite,windows-phone-7,windows-phone-8,windows-phone,Sqlite,Windows Phone 7,Windows Phone 8,Windows Phone,我正在尝试使用类为表创建foregin键。我有一个类名person(它是我数据库中的表名) 班主任 { [主密钥,自动增量] 公共int ID{get;set;} public string DoctorName { get; set; } public string Date { get; set; } public string Time { get; set; } public string Prescription { get; set; }
public string DoctorName { get; set; }
public string Date { get; set; }
public string Time { get; set; }
public string Prescription { get; set; }
public string Image { get; set; }
public string Audio { get; set; }
}
另一个类名是prescription,因此需要为该类中的person id指定foreignkey。
你能帮我吗
先谢谢你 查看这些链接