I'm using a EF DbSet<FiveMinStockHistory>
. And now, I need a code snippet showing how to implement the EF6+ method DbContext.OnModelCreating(DbModelBuilder modelBuilder) to populate a code-first database. I could not find any good examples.
public class FiveMinStockHistory
{
public int Id { get; set; }
public Dictionary<string, string> Meta_Data { get; set; }
public Dictionary<string, TimeSeries> Lhocv { get; set; }
}
public class TimeSeries
{
public decimal Open { get; set; }
public decimal High { get; set; }
public decimal Low { get; set; }
public decimal Close { get; set; }
public double Volume { get; set; }
}
Thanks!!!