create dbcontext entity framework core code example
Example: generic dbcontext entity framework core
public class SampleContext : GuidDbContext
{
public IDbSet<Foo> Foos { get; set; }
public IDbSet<Bar> Bars { get; set; }
}
public class SampleContext : GuidDbContext
{
public IDbSet<Foo> Foos { get; set; }
public IDbSet<Bar> Bars { get; set; }
}