You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

AppDbContext.cs 340 B

6 years ago
6 years ago
123456789101112
  1. using Microsoft.EntityFrameworkCore;
  2. namespace Sample.RabbitMQ.MySql
  3. {
  4. public class AppDbContext : DbContext
  5. {
  6. protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
  7. {
  8. optionsBuilder.UseMySql("Server=localhost;Database=testcap;UserId=root;Password=123123;");
  9. }
  10. }
  11. }