first commit
This commit is contained in:
36
Complex.Application/IComplexDBContext.cs
Normal file
36
Complex.Application/IComplexDBContext.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using Complex.Domain.Entities;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.ChangeTracking;
|
||||
|
||||
namespace Complex.Application
|
||||
{
|
||||
public interface IComplexDBContext
|
||||
{
|
||||
DbSet<BasicTable> BasicTables { get; set; }
|
||||
DbSet<UnitState> UnitStates { get; set; }
|
||||
DbSet<Chat> Chats { get; set; }
|
||||
DbSet<ComplexEntity> ComplexEntities { get; set; }
|
||||
DbSet<ComplexManager> ComplexManagers { get; set; }
|
||||
DbSet<ComplexUnitEvent> ComplexUnitEvents { get; set; }
|
||||
DbSet<Person> Persons { get; set; }
|
||||
DbSet<ComplexPerson> ComplexPersons { get; set; }
|
||||
|
||||
DbSet<Poster> Posters { get; set; }
|
||||
DbSet<Transaction> Transactions { get; set; }
|
||||
DbSet<IncomeCostTitle> IncomeCostTitles { get; set; }
|
||||
DbSet<TransactionType> TransactionTypes { get; set; }
|
||||
DbSet<UnitCost> UnitCosts { get; set; }
|
||||
DbSet<CostCycle> CostCycles { get; set; }
|
||||
DbSet<Unit> Units { get; set; }
|
||||
DbSet<UserToken> UserTokens { get; set; }
|
||||
DbSet<SmsCode> SmsCodes { get; set; }
|
||||
|
||||
EntityEntry Add(object entity);
|
||||
object? Find(Type entityType, object keyId);
|
||||
int SaveChanges(bool acceptAllChangesOnSuccess);
|
||||
int SaveChanges();
|
||||
Task<int> SaveChangesAsync(bool acceptAllChangesOnSuccess, CancellationToken cancellationToken = new CancellationToken());
|
||||
Task<int> SaveChangesAsync(CancellationToken cancellationToken = new CancellationToken());
|
||||
EntityEntry Entry(object entity);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user