Update to latest packages and show examples
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user