You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
using System;
|
|
using System.Linq;
|
|
|
|
namespace Infrastructure.Data
|
|
{
|
|
public interface IRepository<T> where T : class
|
|
{
|
|
IQueryable<T> Table();
|
|
|
|
IQueryable<T> ReadOnlyTable();
|
|
|
|
T FindBy(Guid id);
|
|
|
|
void Add(T entity);
|
|
|
|
void Update(T entity);
|
|
|
|
void Delete(T entity);
|
|
|
|
int SaveChanges();
|
|
}
|
|
} |