27 lines
693 B
C#
27 lines
693 B
C#
using GerstITS.Data.EntityFramework;
|
|
using GerstITS.Examples.Transactions.Entities;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace GerstITS.Examples.Transactions;
|
|
|
|
public sealed class ProductDbContext : EntityFrameworkDbContextBase, IDbContext
|
|
{
|
|
#region Properties
|
|
|
|
public DbSet<ProductEntity> Products => Set<ProductEntity>();
|
|
|
|
protected override string ConnectionStringName => "ProductDbContext";
|
|
|
|
#endregion
|
|
|
|
#region Constructors
|
|
|
|
public ProductDbContext(IDatabaseConfigurator databaseConfigurator,
|
|
DbContextOptions<ProductDbContext> dbContextOptions)
|
|
: base(databaseConfigurator, dbContextOptions)
|
|
{
|
|
}
|
|
|
|
#endregion
|
|
}
|