Mercurial > pub > bltoolkit
comparison Source/Data/DataProvider/DataProviderInterpreterBase.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 System.Data; | |
3 using BLToolkit.Mapping; | |
4 | |
5 namespace BLToolkit.Data.DataProvider | |
6 { | |
7 /// <summary> | |
8 /// BasicSqlProvider equivalent for the non-linq DAL | |
9 /// </summary> | |
10 public abstract class DataProviderInterpreterBase | |
11 { | |
12 public virtual void SetParameterValue(IDbDataParameter parameter, object value) | |
13 { | |
14 if (value is System.Data.Linq.Binary) | |
15 { | |
16 var arr = ((System.Data.Linq.Binary)value).ToArray(); | |
17 | |
18 parameter.Value = arr; | |
19 parameter.DbType = DbType.Binary; | |
20 parameter.Size = arr.Length; | |
21 } | |
22 else | |
23 parameter.Value = value; | |
24 } | |
25 | |
26 public virtual List<string> GetInsertBatchSqlList<T>( | |
27 string insertText, | |
28 IEnumerable<T> collection, | |
29 MemberMapper[] members, | |
30 int maxBatchSize, | |
31 bool withIdentity) | |
32 { | |
33 return new List<string>(); | |
34 } | |
35 | |
36 public virtual string GetSequenceQuery(string sequenceName) | |
37 { | |
38 return null; | |
39 } | |
40 | |
41 public virtual string NextSequenceQuery(string sequenceName) | |
42 { | |
43 return null; | |
44 } | |
45 | |
46 public virtual string GetReturningInto(string columnName) | |
47 { | |
48 return null; | |
49 } | |
50 } | |
51 } |