28 lines
766 B
C#
28 lines
766 B
C#
using GerstITS.Data.EntityFramework;
|
|
using GerstITS.Examples.Data.Entities;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace GerstITS.Examples.Data;
|
|
|
|
public sealed class CustomerDbContext : EntityFrameworkDbContextBase, IDbContext
|
|
{
|
|
#region Properties
|
|
|
|
public DbSet<CustomerEntity> Customers => Set<CustomerEntity>();
|
|
public DbSet<CustomerNoteEntity> CustomerNotes => Set<CustomerNoteEntity>();
|
|
|
|
protected override string ConnectionStringName => "CustomerDbContext";
|
|
|
|
#endregion
|
|
|
|
#region Constructors
|
|
|
|
public CustomerDbContext(IDatabaseConfigurator databaseConfigurator,
|
|
DbContextOptions<CustomerDbContext> dbContextOptions)
|
|
: base(databaseConfigurator, dbContextOptions)
|
|
{
|
|
}
|
|
|
|
#endregion
|
|
}
|