14 lines
830 B
C#
14 lines
830 B
C#
using Microsoft.EntityFrameworkCore;
|
|
using Persistence.Database.Entity;
|
|
using Persistence.Database.Model;
|
|
using System.Diagnostics.CodeAnalysis;
|
|
|
|
namespace Persistence.Database;
|
|
public interface IPersistenceDbContext : IDisposable
|
|
{
|
|
DbSet<DataSaub> DataSaub { get; }
|
|
DbSet<TimestampedSet> TimestampedSets { get; }
|
|
DbSet<TEntity> Set<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors | DynamicallyAccessedMemberTypes.NonPublicConstructors | DynamicallyAccessedMemberTypes.PublicFields | DynamicallyAccessedMemberTypes.NonPublicFields | DynamicallyAccessedMemberTypes.PublicProperties | DynamicallyAccessedMemberTypes.NonPublicProperties | DynamicallyAccessedMemberTypes.Interfaces)] TEntity>() where TEntity : class;
|
|
Task<int> SaveChangesAsync(CancellationToken cancellationToken);
|
|
}
|