Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sqlite/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
windows phone中sqlite的Foregin键_Sqlite_Windows Phone 7_Windows Phone 8_Windows Phone - Fatal编程技术网

windows phone中sqlite的Foregin键

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; }

我正在尝试使用类为表创建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 Image { get; set; }

    public string Audio { get; set; }
}

另一个类名是prescription,因此需要为该类中的person id指定foreignkey。 你能帮我吗

先谢谢你

查看这些链接

这些链接指定了一个可用于访问WP8中SQLite和实现FK的