I have a very simple model that maps to one table (Projects) in my database. I have chosen to abstract out images to its own class.
public class Project
{
public long Id { get; set; }
public string Name { get; set; }
public Image Images { get; set; }
}
public class Image
{
public string Thumbnail { get; set; }
public string PrimaryImage { get; set; }
}
How would I go about wiring up my model to the table in the database using the code below:
public class Context : DbContext
{
public DbSet<Project> Projects { get; set; }
protected override void OnModelCreating(DbModelBuilder modelBuilder)
{
????
}
}
Thanks