Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class CarServiceContext : DbContext
- {
- // DB connection properties injected automatically
- public CarServiceContext() {}
- // DB connection properties given explicitly (for Unit Tests)
- public CarServiceContext(DbContextOptions options) : base(options) { }
- public DbSet<Car> Cars { get; set; }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement