10 references to MaxANSICharacters
System.Data (10)
fx\src\data\Microsoft\SqlServer\Server\MetadataUtilsSmi.cs (4)
597
if (maxLength > SmiMetaData.
MaxANSICharacters
) {
620
if (SmiMetaData.
MaxANSICharacters
< maxLength) {
825
maxLength = SmiMetaData.
MaxANSICharacters
;
837
if (maxLength > SmiMetaData.
MaxANSICharacters
) {
fx\src\data\Microsoft\SqlServer\Server\SmiMetaData.cs (3)
120
internal static readonly SmiMetaData DefaultVarChar_NoCollation = new SmiMetaData(SqlDbType.VarChar,
MaxANSICharacters
, 0, 0, DefaultStringCompareOptions);// SqlDbType.VarChar
486
result = 0 < maxLength &&
MaxANSICharacters
>= maxLength;
495
result = UnlimitedMaxLengthIndicator == maxLength || ( 0 < maxLength &&
MaxANSICharacters
>= maxLength );
fx\src\data\System\Data\SqlClient\SqlCommand.cs (1)
6315
(mt.IsAnsiType && size < SmiMetaData.
MaxANSICharacters
)) {
fx\src\data\System\Data\SqlClient\SqlParameter.cs (2)
401
maxLen = MSS.SmiMetaData.
MaxANSICharacters
;
408
|| ( maxLen > MSS.SmiMetaData.
MaxANSICharacters
&& ( SqlDbType.Char == mt.SqlDbType || SqlDbType.VarChar == mt.SqlDbType ))