Mercurial > pub > bltoolkit
comparison Source/DataAccess/ISqlQueryT.cs @ 0:f990fcb411a9
Копия текущей версии из github
author | cin |
---|---|
date | Thu, 27 Mar 2014 21:46:09 +0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f990fcb411a9 |
---|---|
1 using System.Collections.Generic; | |
2 using BLToolkit.Data; | |
3 | |
4 namespace BLToolkit.DataAccess | |
5 { | |
6 public interface ISqlQueryT<T> | |
7 { | |
8 T SelectByKey(DbManager db, params object[] keys); | |
9 T SelectByKey(params object[] keys); | |
10 List<T> SelectAll(DbManager db); | |
11 | |
12 TL SelectAll<TL>(DbManager db, TL list) | |
13 where TL : IList<T>; | |
14 | |
15 TL SelectAll<TL>(DbManager db) | |
16 where TL : IList<T>, new(); | |
17 | |
18 List<T> SelectAll(); | |
19 | |
20 TL SelectAll<TL>(TL list) | |
21 where TL : IList<T>; | |
22 | |
23 TL SelectAll<TL>() | |
24 where TL : IList<T>, new(); | |
25 | |
26 int Insert(DbManager db, T obj); | |
27 int Insert(T obj); | |
28 int Insert(DbManager db, int maxBatchSize, IEnumerable<T> list); | |
29 int Insert(int maxBatchSize, IEnumerable<T> list); | |
30 int Insert(DbManager db, IEnumerable<T> list); | |
31 int Insert(IEnumerable<T> list); | |
32 int Update(DbManager db, T obj); | |
33 int Update(T obj); | |
34 int Update(DbManager db, int maxBatchSize, IEnumerable<T> list); | |
35 int Update(int maxBatchSize, IEnumerable<T> list); | |
36 int Update(DbManager db, IEnumerable<T> list); | |
37 int Update(IEnumerable<T> list); | |
38 int DeleteByKey(DbManager db, params object[] key); | |
39 int DeleteByKey(params object[] key); | |
40 int Delete(DbManager db, T obj); | |
41 int Delete(T obj); | |
42 int Delete(DbManager db, int maxBatchSize, IEnumerable<T> list); | |
43 int Delete(int maxBatchSize, IEnumerable<T> list); | |
44 int Delete(DbManager db, IEnumerable<T> list); | |
45 int Delete(IEnumerable<T> list); | |
46 } | |
47 } |