0
我使用Xamarin.Android开发Android上的Visual Studio 2015和我得到的PCL项目出现以下错误:System.Exception的:表中没有(公共)列
Unhandled Exception:
10-04 01:47:04.594 E/mono (3322): System.Exception: Table has no (public) columns
10-04 01:47:04.594 E/mono (3322): at SQLite.Net.SQLiteConnection.CreateTable (System.Type ty, CreateFlags createFlags) [0x0002e] in <filename unknown>:0
10-04 01:47:04.594 E/mono (3322): at SQLite.Net.Async.SQLiteAsyncConnection+<>c__DisplayClass11_0.<CreateTablesAsync>b__0() [0x0002b] in <filename unknown>:0
我的包装属性设置为关闭Use Shared Runtime
。
我的链接属性设置为链接Sdk and User Assemblies
。
我支持arm
和x86
体系结构,我的Java Mas Heap Size
是1G
。
我已经搜索这个错误,但是我找不到任何相关的东西。
[Table("User")]
public class User : IBusinessEntity
{
[PrimaryKey, AutoIncrement]
public long Id { get; set; }
public string Name { get; set; }
public string Email { get; set; }
public string Password { get; set; }
public DateTime CreationDate { get; set; }
}
我使用SQLite.Net.Async-PCL
库:
错误时SQLite
尝试创建一个表,这个实体出现。