comparison Source/Data/DataProvider/Sql2005DataProvider.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;
2 using System.Data;
3
4 namespace BLToolkit.Data.DataProvider
5 {
6 using Sql.SqlProvider;
7
8 public sealed class Sql2005DataProvider : SqlDataProviderBase
9 {
10 public override string Name
11 {
12 get { return DataProvider.ProviderName.MsSql2005; }
13 }
14
15 public override ISqlProvider CreateSqlProvider()
16 {
17 return new MsSql2005SqlProvider();
18 }
19
20 public override void AttachParameter(IDbCommand command, IDbDataParameter parameter)
21 {
22 if (parameter.DbType == DbType.DateTime2)
23 parameter.DbType = DbType.DateTime;
24
25 base.AttachParameter(command, parameter);
26 }
27 }
28 }