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