List<Tuple<T1,T2,T3>> to Database Mapping

有些话、适合烂在心里 提交于 2019-12-12 05:06:01

问题


I have a class defined as below

public class blog 
{
  public int Id { get; set; }
  public string Title { get; set; }
  public DateTime CreateTime { get; set; }
  // a list of author's info including author's id, name, department
  public List<Tuple<int, string, string>> Authors { get; set; }
}

I don't know if any exist ORM solution can do this List<Tuple<int, string, string>> to database mapping for me? I use massive a lot and trying to use NHibernate & EF 4.3 to solve this problem, however, nothing achieved till now.

PLEASE DON'T argue that if it is correct I use List<Tuple<int, string, string>> to represent a type like author information.

来源:https://stackoverflow.com/questions/9560895/listtuplet1-t2-t3-to-database-mapping

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!