Mineplex2018-withcommit/Website/LOC.Website.Common/Contexts/IRepository.cs
Jonathan Williams 8198bb31c8 Added sneaking to player disguise.
Did work on DDoSProtectionSwitcher
Work on AccountAdministrator to fix rank issues.
2014-09-01 00:56:32 -07:00

26 lines
946 B
C#

namespace LOC.Core.Data
{
using System;
using System.Data.Entity;
using System.Linq;
using System.Linq.Expressions;
public interface IRepository : IDisposable
{
TEntity Add<TEntity>(TEntity entity) where TEntity : class;
bool Any<TEntity>(Expression<Func<TEntity, bool>> predicate) where TEntity : class;
bool Any<TEntity>() where TEntity : class;
void CommitChanges();
void Delete<TEntity>(TEntity entity) where TEntity : class;
void Edit<TEntity>(TEntity entity) where TEntity : class;
void Attach<TEntity>(TEntity entity) where TEntity : class;
IQueryable<TEntity> GetAll<TEntity>() where TEntity : class;
TEntity GetByKeyValues<TEntity>(params object[] keyValues) where TEntity : class;
IQueryable<TEntity> Where<TEntity>(Expression<Func<TEntity, bool>> predicate) where TEntity : class;
DbContext Context { get; }
}
}