root/trunk/eCard/eCardMVC/Platnosci.Core/Interface/IRepository.cs @ 896

Wersja 896, 1.1 KB (wprowadzona przez alina, 16 years temu)

re #215 zmiana parametrow w konstruktorze PlatnosciController?, dostosowanie testow do zmiany

Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Linq.Expressions;
5using System.Text;
6using Platnosci.Core.Linq;
7
8namespace Platnosci.Core.Interface
9{
10    public interface IRepository<T> where T : IIdentifiable
11    {
12        int Count();
13
14        int Count(Expression<Func<T, bool>> expression);
15
16        void Insert(T entity);
17
18        void Delete(T entity);
19       
20        void SubmitChanges();
21
22        T FindOne(int id);
23
24        T FindOne(Expression<Func<T, bool>> expression);
25
26        bool TryFindOne(Expression<Func<T, bool>> expression, out T entity);
27
28        bool Exists(Expression<Func<T, bool>> expression);
29
30        IList<T> FindAll();
31
32        IList<T> FindAll(Expression<Func<T, bool>> expression);
33
34        IQueryable<T> Find();
35
36        IQueryable<T> Find(int id);
37
38        IQueryable<T> Find(Expression<Func<T, bool>> expression);
39
40        IQueryable<vPlatnosciEcard> FindInvoiceByNipNumber(string nip, string numer);
41
42        List<PotwierdzeniaEcard> FindItemsByIdFaktury(int idFaktury);
43    }
44}
Notatka: Zobacz TracBrowser aby uzyskać więcej informacji.