【问题标题】:Simple ORM with relationships具有关系的简单 ORM
【发布时间】:2012-08-12 15:05:00
【问题描述】:

对支持 Windows 8 / WP8 关系的 ORM 有何建议?

class Person {
    int id;
    int Name;
    List<Address> Addresses;
}

class Address {
    int id;
    string Street;
    string Country;
}

如果您确实在 person 上创建表,它也应该创建 Address 表,并且任何对 Person 的选择查询也将返回关联的地址。我知道 EF/nHibernate 会这样做,但不幸的是,我们不再使用 WinRT 获得 System.Data。

【问题讨论】:

标签: c# orm windows-runtime


【解决方案1】:

您最好的选择可能是使用sqlite-net,它是 SQLite 的微型 ORM

Tim Heuer 在这里有一篇关于此的文章。 http://timheuer.com/blog/archive/2012/05/20/using-sqlite-in-metro-style-app.aspx

【讨论】:

猜你喜欢
  • 2012-06-01
  • 1970-01-01
  • 2014-03-29
  • 2018-11-05
  • 1970-01-01
  • 2017-11-28
  • 1970-01-01
  • 2016-03-25
  • 2018-08-06
相关资源
最近更新 更多