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.
 
 
 

20 line
586 B

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Threading.Tasks;
  5. using DotNetCore.CAP.EntityFrameworkCore;
  6. using DotNetCore.CAP.Infrastructure;
  7. using JetBrains.Annotations;
  8. using Microsoft.EntityFrameworkCore;
  9. namespace Sample.Kafka
  10. {
  11. public class AppDbContext : CapDbContext
  12. {
  13. protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
  14. {
  15. optionsBuilder.UseSqlServer("Server=DESKTOP-M9R8T31;Initial Catalog=WebApp1;User Id=sa;Password=P@ssw0rd;MultipleActiveResultSets=True");
  16. }
  17. }
  18. }