0
|
1 using System;
|
|
2 using System.Data;
|
|
3
|
|
4 namespace BLToolkit.Data.DataProvider
|
|
5 {
|
|
6 using Sql.SqlProvider;
|
|
7
|
|
8 public sealed class Sql2000DataProvider : SqlDataProviderBase
|
|
9 {
|
|
10 public override string Name
|
|
11 {
|
|
12 get { return DataProvider.ProviderName.MsSql2000; }
|
|
13 }
|
|
14
|
|
15 public override ISqlProvider CreateSqlProvider()
|
|
16 {
|
|
17 return new MsSql2000SqlProvider();
|
|
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 }
|