Created
July 27, 2017 18:03
-
-
Save dsibinski/ae4a1fa5c1cf2797ff3f7f6e90d3ca9b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment