Guest User

Untitled

a guest
Mar 17th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. // This method gets called by the runtime. Use this method to add services to the container.
  2. public void ConfigureServices(IServiceCollection services)
  3. {
  4. // Add framework services.
  5. services.AddDbContext<ApplicationDbContext>(options =>
  6. options.UseSqlServer(Configuration.GetConnectionString("DefaultConnection")));
  7.  
  8. services.AddMvc();
  9.  
  10. // Add application services.
  11. services.AddTransient<IEmailSender, EmailSender>();
  12. }
Add Comment
Please, Sign In to add comment