using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GreenTree.Nachtragsmanagement.Core;
using GreenTree.Nachtragsmanagement.Data;
namespace GreenTree.Nachtragsmanagement.Services.DbContext
{
interface IDbContextService
{
///
/// Checks if a DbSet exists in the curent DbContext
///
/// The entity type of the DbSet.
bool DbSetExists() where TEntity : BaseEntity;
///
/// Get the DbSet of the corresponding Entity type
///
/// The entity type of the DbSet.
IDbSet GetDbSet() where TEntity : BaseEntity;
///
/// Gets the current DbContext
///
AppendixObjectContext GetDbContext();
}
}