Tuesday, 10 September 2013

Entity splitting when value is a list

Entity splitting when value is a list

I have 3 tables which stores data for my MVC3 program ( I made sample
tables to illustrate).

I'm using Entity Framework but don't know how to connect those tables so I
will get something like this:
public class TableABC
{
public int Id { get; set; }
public string Name { get; set; }
public string Surname { get; set; }
public List<string> Colours { get; set; }
public List<string> Pets { get; set; }
}
I found that this is called "Entity splitting" and I need to map those
table, but completely dont know how to start.
Many thanks for any help.

No comments:

Post a Comment