12 references to MaxUnicodeCharacters
System.Data (12)
fx\src\data\Microsoft\SqlServer\Server\MetadataUtilsSmi.cs (4)
602if (maxLength > SmiMetaData.MaxUnicodeCharacters) { 608if (SmiMetaData.MaxUnicodeCharacters < maxLength) { 855maxLength = SmiMetaData.MaxUnicodeCharacters; 867if (maxLength > SmiMetaData.MaxUnicodeCharacters) {
fx\src\data\Microsoft\SqlServer\Server\SmiMetaData.cs (3)
110internal static readonly SmiMetaData DefaultNVarChar_NoCollation = new SmiMetaData(SqlDbType.NVarChar, MaxUnicodeCharacters, 0, 0, DefaultStringCompareOptions);// SqlDbType.NVarChar 489result = 0 < maxLength && MaxUnicodeCharacters >= maxLength; 492result = UnlimitedMaxLengthIndicator == maxLength || ( 0 < maxLength && MaxUnicodeCharacters >= maxLength );
fx\src\data\Microsoft\SqlServer\Server\sqlpipe.cs (1)
94if ( SmiMetaData.MaxUnicodeCharacters < message.Length ) {
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (1)
3583SmiMetaData.MaxUnicodeCharacters,
fx\src\data\System\Data\SqlClient\SqlCommand.cs (1)
6313if ((mt.IsNCharType && size < SmiMetaData.MaxUnicodeCharacters) ||
fx\src\data\System\Data\SqlClient\SqlParameter.cs (2)
404maxLen = MSS.SmiMetaData.MaxUnicodeCharacters; 409|| ( maxLen > MSS.SmiMetaData.MaxUnicodeCharacters&& ( SqlDbType.NChar == mt.SqlDbType || SqlDbType.NVarChar == mt.SqlDbType )) ) {