mirror of
https://github.com/chsakell/aspnet-core-signalr-angular.git
synced 2025-12-22 17:27:48 +00:00
26 lines
911 B
C#
26 lines
911 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using System.Linq.Expressions;
|
|
using LiveGameFeed.Models;
|
|
|
|
namespace LiveGameFeed.Data.Abstract
|
|
{
|
|
public interface IEntityBaseRepository<T> where T : class, IEntityBase, new()
|
|
{
|
|
IEnumerable<T> AllIncluding(params Expression<Func<T, object>>[] includeProperties);
|
|
IEnumerable<T> GetAll();
|
|
int Count();
|
|
T GetSingle(int id);
|
|
T GetSingle(Expression<Func<T, bool>> predicate);
|
|
T GetSingle(Expression<Func<T, bool>> predicate, params Expression<Func<T, object>>[] includeProperties);
|
|
IEnumerable<T> FindBy(Expression<Func<T, bool>> predicate);
|
|
void Add(T entity);
|
|
void Update(T entity);
|
|
void Delete(T entity);
|
|
void DeleteWhere(Expression<Func<T, bool>> predicate);
|
|
void Commit();
|
|
}
|
|
}
|