Tag: sqlite net extensions

ManyToOne约束不起作用

我的关系非常简单,我的模型看起来像这样: public class Project { [PrimaryKey, AutoIncrement] public int ID { get; set; } public string Name { get; set; } [ForeignKey(typeof(User))] public int ProjectManagerID { get; set; } [ManyToOne] public User ProjectManager { get; set; } } public class User { public string Login { get; set; } [OneToMany] public List Projects { get; […]

Sqlite扩展无法按预期工作

我正在开发一个WinRT应用程序。 我想使用sqlite-net-extensions来支持OneToMany , ManyToMany 。 using SQLiteNetExtensions.Attributes; using SQLite; [Table(“WorkFlow”)] public class Workflow { [PrimaryKey, AutoIncrement] public int WorkflowId { get; set; } public string Name { get; set; } public int Revision { get; set; } [OneToMany] public List Steps { get; set; } } [Table(“Step”)] public class Step { public string Type { […]