25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

13 lines
377 B

  1. using Microsoft.EntityFrameworkCore;
  2. namespace DotNetCore.CAP.SqlServer.Test
  3. {
  4. public class TestDbContext : DbContext
  5. {
  6. protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
  7. {
  8. var connectionString = ConnectionUtil.GetConnectionString();
  9. optionsBuilder.UseSqlServer(connectionString);
  10. }
  11. }
  12. }