|
Wersja 918, 1.1 KB
(wprowadzona przez alina, 16 years temu)
|
|
re #215 dodanie metody szukania ordernumber po orderdescription, dacie i id faktury
|
| Line | |
|---|
| 1 | using System;
|
|---|
| 2 | using System.Collections.Generic;
|
|---|
| 3 | using System.Linq;
|
|---|
| 4 | using System.Linq.Expressions;
|
|---|
| 5 | using System.Text;
|
|---|
| 6 | using Platnosci.Core.Linq;
|
|---|
| 7 |
|
|---|
| 8 | namespace 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 | int GetOrdernumber(string description, int? idfaktury, DateTime? data);
|
|---|
| 45 | }
|
|---|
| 46 | } |
|---|
Notatka: Zobacz
TracBrowser
aby uzyskać więcej informacji.