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

Wersja 877, 1.2 KB (wprowadzona przez alina, 16 years temu)

re #215 rozdzielenie testow, modyfikacja testu dotycząca dodania potwierdzenia i edycji statusu platnosci,
zmiana wysłania formularza do eCardu

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 Update(T entity);
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        IQueryable<vPlatnosciEcard> FindInvoiceById(int id);
43
44        List<PotwierdzeniaEcard> FindItemsByIdFaktury(int idFaktury);
45
46        IQueryable<PlatnosciEcard> FindPaymentByOrdernumber(int ordernumber);
47    }
48}
Notatka: Zobacz TracBrowser aby uzyskać więcej informacji.