mirror of
https://github.com/cq-panda/Vue.NetCore.git
synced 2026-10-22 01:07:28 +08:00
22 lines
476 B
C#
Executable File
22 lines
476 B
C#
Executable File
using Microsoft.EntityFrameworkCore;
|
|
using System.Linq;
|
|
namespace VOL.Core.EFDbContext
|
|
{
|
|
public abstract class BaseDbContext : DbContext
|
|
{
|
|
public BaseDbContext()
|
|
{
|
|
|
|
}
|
|
public BaseDbContext(DbContextOptions<VOLContext> options)
|
|
: base(options)
|
|
{
|
|
|
|
}
|
|
public IQueryable<TEntity> Set<TEntity>(bool filterDeleted) where TEntity : class
|
|
{
|
|
return base.Set<TEntity>();
|
|
}
|
|
}
|
|
}
|