Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. public class CarServiceContext : DbContext
  2. {
  3. // DB connection properties injected automatically
  4. public CarServiceContext() {}
  5.  
  6. // DB connection properties given explicitly (for Unit Tests)
  7. public CarServiceContext(DbContextOptions options) : base(options) { }
  8.  
  9. public DbSet<Car> Cars { get; set; }
  10.  
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement