Language: C#
Rezpozytorium generyczne 2
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; namespace Orxxx.Data { public interface IRepository<T> { void Create(T entity); void Update(T entity); void Delete(T entity); void Copy(T source, T target); void Flush(); T Get(int id); T Get(Expression<Func<T, bool>> predicate); IQueryable<T> Table { get; } int Count(Expression<Func<T, bool>> predicate); IEnumerable<T> Fetch(Expression<Func<T, bool>> predicate); IEnumerable<T> Fetch(Expression<Func<T, bool>> predicate, Action<Orderable<T>> order); IEnumerable<T> Fetch(Expression<Func<T, bool>> predicate, Action<Orderable<T>> order, int skip, int count); [Obsolete] void Transaction(Action action); } }
Tags:
Report Abuse
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search

