CQRS_Simple/CQRS_Simple.EntityFrameworkCore/SimpleDbContext.cs
2022-04-07 14:00:58 +08:00

24 lines
505 B
C#

using System;
using CQRS_Simple.Domain.Products;
using Microsoft.EntityFrameworkCore;
using Serilog;
namespace CQRS_Simple.EntityFrameworkCore
{
public class SimpleDbContext : DbContext
{
protected SimpleDbContext()
{
}
public DbSet<Product> Products { get; set; }
public SimpleDbContext(DbContextOptions<SimpleDbContext> options)
: base(options)
{
#if DEBUG
Log.Debug($"SimpleDbContext Init");
#endif
}
}
}