Created
July 7, 2017 14:40
-
-
Save rahulsahay19/1e0f4916d4ac1273f92c22dc40c8f5d6 to your computer and use it in GitHub Desktop.
IMovieRepository
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 void ConfigureServices(IServiceCollection services) | |
{ | |
services.AddAutoMapper(); | |
services.AddScoped<IMovieRepository, MovieRepository>(); | |
//Added DbContext | |
services.AddDbContext<MovieReviewDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("Default"))); | |
// Add framework services. | |
services.AddMvc(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment