C#using var logger = new LoggerConfiguration() .WriteTo.Console() .WriteTo.File("Logs/log.txt", rollingInterval: RollingInterval.Day) .CreateLogger();builder.Logging.ClearProviders();builder.Logging.AddSerilog(logger);
C# public AppDbContext(DbContextOptions<AppDbContext> options) : base(options) { } public AppDbContext() { }
C# public AppDbContext() { }
C# public class TheBigStoreContext : DbContext { public TheBigStoreContext(DbContextOptions options) : base(options) { } public TheBigStoreContext() { }