Last active
August 29, 2015 14:11
-
-
Save rytmis/54858632ca94b6a82203 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SqlAzureClientDriverWithParameterSizeWorkaround : SqlAzureClientDriver { | |
protected override void InitializeParameter(IDbDataParameter dbParam, string name, SqlType sqlType) { | |
base.InitializeParameter(dbParam, name, sqlType); | |
if (sqlType.DbType == DbType.StringFixedLength && sqlType.LengthDefined && sqlType.Length == 1) { | |
dbParam.Size = 1; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment