有沒有辦法在SQLite中爲c#使用註釋複合鍵?下面的代碼拋出一個異常,稱該表有不止一個主鍵:SQLite for WinRT多個主鍵?
userDatabase.CreateTable<MyObject>();
//class file
[SQLite.Table("MyObject")]
public class MyObject
{
[SQLite.PrimaryKey]
public int IdOne { get; set; }
[SQLite.PrimaryKey]
public int IdTwo { get; set; }
}
這裏與Entity Framework有什麼關係? – TomTom 2014-10-19 08:43:16