Mercurial > pub > bltoolkit
view Source/Data/DataProvider/Sql2005DataProvider.cs @ 5:f7d63a092920
Исправлено условие Where в тех случаях, когда репозитарий не является генериком
author | cin |
---|---|
date | Tue, 10 Mar 2015 16:02:11 +0300 |
parents | f990fcb411a9 |
children |
line wrap: on
line source
using System; using System.Data; namespace BLToolkit.Data.DataProvider { using Sql.SqlProvider; public sealed class Sql2005DataProvider : SqlDataProviderBase { public override string Name { get { return DataProvider.ProviderName.MsSql2005; } } public override ISqlProvider CreateSqlProvider() { return new MsSql2005SqlProvider(); } public override void AttachParameter(IDbCommand command, IDbDataParameter parameter) { if (parameter.DbType == DbType.DateTime2) parameter.DbType = DbType.DateTime; base.AttachParameter(command, parameter); } } }