24 lines
589 B
C#
24 lines
589 B
C#
using AyCode.Interfaces.Entities;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace AyCode.Database.DbSets.Base;
|
|
|
|
public interface IDbSetGuidBase<TEntity> where TEntity : class, IEntityGuid
|
|
{
|
|
DbSet<TEntity> Users { get; set; }
|
|
}
|
|
|
|
public interface IDbSetIntBase<TEntity> where TEntity : class, IEntityInt
|
|
{
|
|
DbSet<TEntity> Users { get; set; }
|
|
}
|
|
|
|
public interface IDbSetBase<TEntity, TPkey> where TEntity : class, IEntity<TPkey>
|
|
{
|
|
DbSet<TEntity> Users { get; set; }
|
|
}
|
|
|
|
public interface IDbSetBase<TEntity> where TEntity : class, IEntity
|
|
{
|
|
DbSet<TEntity> Users { get; set; }
|
|
} |