List> to Database Mapping

2019-08-17 09:26发布

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.

0条回答
登录 后发表回答