root/trunk/eCard/eCardMVC/Platnosci.Core/Interface/IRepositoryPE.cs @ 866

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

re #215

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