1 type derived from SmiMetaData
System.Data (1)
fx\src\data\Microsoft\SqlServer\Server\SmiMetaData.cs (1)
804
internal class SmiExtendedMetaData :
SmiMetaData
{
40 instantiations of SmiMetaData
System.Data (40)
fx\src\data\Microsoft\SqlServer\Server\SmiMetaData.cs (37)
98
internal static readonly SmiMetaData DefaultBigInt = new
SmiMetaData
(SqlDbType.BigInt, 8, 19, 0, SqlCompareOptions.None); // SqlDbType.BigInt
99
internal static readonly SmiMetaData DefaultBinary = new
SmiMetaData
(SqlDbType.Binary, 1, 0, 0, SqlCompareOptions.None); // SqlDbType.Binary
100
internal static readonly SmiMetaData DefaultBit = new
SmiMetaData
(SqlDbType.Bit, 1, 1, 0, SqlCompareOptions.None); // SqlDbType.Bit
101
internal static readonly SmiMetaData DefaultChar_NoCollation = new
SmiMetaData
(SqlDbType.Char, 1, 0, 0, DefaultStringCompareOptions);// SqlDbType.Char
102
internal static readonly SmiMetaData DefaultDateTime = new
SmiMetaData
(SqlDbType.DateTime, 8, 23, 3, SqlCompareOptions.None); // SqlDbType.DateTime
103
internal static readonly SmiMetaData DefaultDecimal = new
SmiMetaData
(SqlDbType.Decimal, 9, 18, 0, SqlCompareOptions.None); // SqlDbType.Decimal
104
internal static readonly SmiMetaData DefaultFloat = new
SmiMetaData
(SqlDbType.Float, 8, 53, 0, SqlCompareOptions.None); // SqlDbType.Float
105
internal static readonly SmiMetaData DefaultImage = new
SmiMetaData
(SqlDbType.Image, UnlimitedMaxLengthIndicator,0, 0, SqlCompareOptions.None); // SqlDbType.Image
106
internal static readonly SmiMetaData DefaultInt = new
SmiMetaData
(SqlDbType.Int, 4, 10, 0, SqlCompareOptions.None); // SqlDbType.Int
107
internal static readonly SmiMetaData DefaultMoney = new
SmiMetaData
(SqlDbType.Money, 8, 19, 4, SqlCompareOptions.None); // SqlDbType.Money
108
internal static readonly SmiMetaData DefaultNChar_NoCollation = new
SmiMetaData
(SqlDbType.NChar, 1, 0, 0, DefaultStringCompareOptions);// SqlDbType.NChar
109
internal static readonly SmiMetaData DefaultNText_NoCollation = new
SmiMetaData
(SqlDbType.NText, UnlimitedMaxLengthIndicator,0, 0, DefaultStringCompareOptions);// SqlDbType.NText
110
internal static readonly SmiMetaData DefaultNVarChar_NoCollation = new
SmiMetaData
(SqlDbType.NVarChar, MaxUnicodeCharacters, 0, 0, DefaultStringCompareOptions);// SqlDbType.NVarChar
111
internal static readonly SmiMetaData DefaultReal = new
SmiMetaData
(SqlDbType.Real, 4, 24, 0, SqlCompareOptions.None); // SqlDbType.Real
112
internal static readonly SmiMetaData DefaultUniqueIdentifier = new
SmiMetaData
(SqlDbType.UniqueIdentifier, 16, 0, 0, SqlCompareOptions.None); // SqlDbType.UniqueIdentifier
113
internal static readonly SmiMetaData DefaultSmallDateTime = new
SmiMetaData
(SqlDbType.SmallDateTime, 4, 16, 0, SqlCompareOptions.None); // SqlDbType.SmallDateTime
114
internal static readonly SmiMetaData DefaultSmallInt = new
SmiMetaData
(SqlDbType.SmallInt, 2, 5, 0, SqlCompareOptions.None); // SqlDbType.SmallInt
115
internal static readonly SmiMetaData DefaultSmallMoney = new
SmiMetaData
(SqlDbType.SmallMoney, 4, 10, 4, SqlCompareOptions.None); // SqlDbType.SmallMoney
116
internal static readonly SmiMetaData DefaultText_NoCollation = new
SmiMetaData
(SqlDbType.Text, UnlimitedMaxLengthIndicator,0, 0, DefaultStringCompareOptions);// SqlDbType.Text
117
internal static readonly SmiMetaData DefaultTimestamp = new
SmiMetaData
(SqlDbType.Timestamp, 8, 0, 0, SqlCompareOptions.None); // SqlDbType.Timestamp
118
internal static readonly SmiMetaData DefaultTinyInt = new
SmiMetaData
(SqlDbType.TinyInt, 1, 3, 0, SqlCompareOptions.None); // SqlDbType.TinyInt
119
internal static readonly SmiMetaData DefaultVarBinary = new
SmiMetaData
(SqlDbType.VarBinary, MaxBinaryLength, 0, 0, SqlCompareOptions.None); // SqlDbType.VarBinary
120
internal static readonly SmiMetaData DefaultVarChar_NoCollation = new
SmiMetaData
(SqlDbType.VarChar, MaxANSICharacters, 0, 0, DefaultStringCompareOptions);// SqlDbType.VarChar
121
internal static readonly SmiMetaData DefaultVariant = new
SmiMetaData
(SqlDbType.Variant, 8016, 0, 0, SqlCompareOptions.None); // SqlDbType.Variant
122
internal static readonly SmiMetaData DefaultXml = new
SmiMetaData
(SqlDbType.Xml, UnlimitedMaxLengthIndicator,0, 0, DefaultStringCompareOptions);// SqlDbType.Xml
123
internal static readonly SmiMetaData DefaultUdt_NoType = new
SmiMetaData
(SqlDbType.Udt, 0, 0, 0, SqlCompareOptions.None); // SqlDbType.Udt
124
internal static readonly SmiMetaData DefaultStructured = new
SmiMetaData
(SqlDbType.Structured, 0, 0, 0, SqlCompareOptions.None); // SqlDbType.Structured
125
internal static readonly SmiMetaData DefaultDate = new
SmiMetaData
(SqlDbType.Date, 3, 10, 0, SqlCompareOptions.None); // SqlDbType.Date
126
internal static readonly SmiMetaData DefaultTime = new
SmiMetaData
(SqlDbType.Time, 5, 0, 7, SqlCompareOptions.None); // SqlDbType.Time
127
internal static readonly SmiMetaData DefaultDateTime2 = new
SmiMetaData
(SqlDbType.DateTime2, 8, 0, 7, SqlCompareOptions.None); // SqlDbType.DateTime2
128
internal static readonly SmiMetaData DefaultDateTimeOffset = new
SmiMetaData
(SqlDbType.DateTimeOffset, 10, 0, 7, SqlCompareOptions.None); // SqlDbType.DateTimeOffset
134
return new
SmiMetaData
(
148
return new
SmiMetaData
(
162
return new
SmiMetaData
(
176
return new
SmiMetaData
(
190
return new
SmiMetaData
(
204
return new
SmiMetaData
(
fx\src\data\Microsoft\SqlServer\Server\SqlDataRecord.cs (1)
31
static readonly SmiMetaData __maxNVarCharForXml = new
SmiMetaData
(SqlDbType.NVarChar, SmiMetaData.UnlimitedMaxLengthIndicator,
fx\src\data\Microsoft\SqlServer\Server\SqlRecordBuffer.cs (1)
364
case StorageType.SqlDecimal: return new
SmiMetaData
(SqlDbType.Decimal, 17, ((SqlDecimal)_object).Precision, ((SqlDecimal)_object).Scale, 0, SqlCompareOptions.None, null);
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (1)
3581
metaData = new
SmiMetaData
(
297 references to SmiMetaData
System.Data (297)
fx\src\data\Microsoft\SqlServer\Server\ITypedGettersV3.cs (1)
24
SmiMetaData
GetVariantType( SmiEventSink sink, int ordinal );
fx\src\data\Microsoft\SqlServer\Server\ITypedSettersV3.cs (1)
28
void SetVariantMetaData( SmiEventSink sink, int ordinal,
SmiMetaData
metaData );
fx\src\data\Microsoft\SqlServer\Server\MemoryRecordBuffer.cs (3)
21
internal MemoryRecordBuffer(
SmiMetaData
[] metaData) {
40
public override
SmiMetaData
GetVariantType(SmiEventSink sink, int ordinal) {
222
public override void SetVariantMetaData(SmiEventSink sink, int ordinal,
SmiMetaData
metaData) {
fx\src\data\Microsoft\SqlServer\Server\MetadataUtilsSmi.cs (38)
164
internal static bool IsPlpFormat(
SmiMetaData
metaData) {
165
return metaData.MaxLength ==
SmiMetaData
.UnlimitedMaxLengthIndicator ||
572
static internal bool IsCompatible(
SmiMetaData
firstMd, SqlMetaData secondMd) {
585
if (
SmiMetaData
.UnlimitedMaxLengthIndicator != maxLength) {
592
if (maxLength >
SmiMetaData
.MaxBinaryLength) {
597
if (maxLength >
SmiMetaData
.MaxANSICharacters) {
602
if (maxLength >
SmiMetaData
.MaxUnicodeCharacters) {
608
if (
SmiMetaData
.MaxUnicodeCharacters < maxLength) {
609
maxLength =
SmiMetaData
.UnlimitedMaxLengthIndicator;
614
if (
SmiMetaData
.MaxBinaryLength < maxLength) {
615
maxLength =
SmiMetaData
.UnlimitedMaxLengthIndicator;
620
if (
SmiMetaData
.MaxANSICharacters < maxLength) {
621
maxLength =
SmiMetaData
.UnlimitedMaxLengthIndicator;
681
scale =
SmiMetaData
.DefaultTime.Scale;
723
SmiMetaData
.DefaultNVarChar.CompareOptions,
795
maxLength =
SmiMetaData
.MaxBinaryLength;
798
maxLength =
SmiMetaData
.UnlimitedMaxLengthIndicator;
807
if (maxLength >
SmiMetaData
.MaxBinaryLength) {
808
maxLength =
SmiMetaData
.UnlimitedMaxLengthIndicator;
812
(maxLength !=
SmiMetaData
.UnlimitedMaxLengthIndicator ||
825
maxLength =
SmiMetaData
.MaxANSICharacters;
828
maxLength =
SmiMetaData
.UnlimitedMaxLengthIndicator;
837
if (maxLength >
SmiMetaData
.MaxANSICharacters) {
838
maxLength =
SmiMetaData
.UnlimitedMaxLengthIndicator;
842
(maxLength !=
SmiMetaData
.UnlimitedMaxLengthIndicator ||
855
maxLength =
SmiMetaData
.MaxUnicodeCharacters;
858
maxLength =
SmiMetaData
.UnlimitedMaxLengthIndicator;
867
if (maxLength >
SmiMetaData
.MaxUnicodeCharacters) {
868
maxLength =
SmiMetaData
.UnlimitedMaxLengthIndicator;
872
(maxLength !=
SmiMetaData
.UnlimitedMaxLengthIndicator ||
882
precision =
SmiMetaData
.DefaultDecimal.Precision;
890
scale =
SmiMetaData
.DefaultDecimal.Scale;
896
if (precision <
SmiMetaData
.MinPrecision ||
898
scale <
SmiMetaData
.MinScale ||
910
scale =
SmiMetaData
.DefaultTime.Scale;
916
if (scale >
SmiMetaData
.MaxTimeScale) {
920
scale =
SmiMetaData
.DefaultTime.Scale;
936
SmiMetaData
.GetDefaultForType(colDbType).CompareOptions,
fx\src\data\Microsoft\SqlServer\Server\SmiGettersStream.cs (2)
22
private
SmiMetaData
_metaData;
24
internal SmiGettersStream( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal,
SmiMetaData
metaData ) {
fx\src\data\Microsoft\SqlServer\Server\SmiMetaData.cs (46)
98
internal static readonly
SmiMetaData
DefaultBigInt = new SmiMetaData(SqlDbType.BigInt, 8, 19, 0, SqlCompareOptions.None); // SqlDbType.BigInt
99
internal static readonly
SmiMetaData
DefaultBinary = new SmiMetaData(SqlDbType.Binary, 1, 0, 0, SqlCompareOptions.None); // SqlDbType.Binary
100
internal static readonly
SmiMetaData
DefaultBit = new SmiMetaData(SqlDbType.Bit, 1, 1, 0, SqlCompareOptions.None); // SqlDbType.Bit
101
internal static readonly
SmiMetaData
DefaultChar_NoCollation = new SmiMetaData(SqlDbType.Char, 1, 0, 0, DefaultStringCompareOptions);// SqlDbType.Char
102
internal static readonly
SmiMetaData
DefaultDateTime = new SmiMetaData(SqlDbType.DateTime, 8, 23, 3, SqlCompareOptions.None); // SqlDbType.DateTime
103
internal static readonly
SmiMetaData
DefaultDecimal = new SmiMetaData(SqlDbType.Decimal, 9, 18, 0, SqlCompareOptions.None); // SqlDbType.Decimal
104
internal static readonly
SmiMetaData
DefaultFloat = new SmiMetaData(SqlDbType.Float, 8, 53, 0, SqlCompareOptions.None); // SqlDbType.Float
105
internal static readonly
SmiMetaData
DefaultImage = new SmiMetaData(SqlDbType.Image, UnlimitedMaxLengthIndicator,0, 0, SqlCompareOptions.None); // SqlDbType.Image
106
internal static readonly
SmiMetaData
DefaultInt = new SmiMetaData(SqlDbType.Int, 4, 10, 0, SqlCompareOptions.None); // SqlDbType.Int
107
internal static readonly
SmiMetaData
DefaultMoney = new SmiMetaData(SqlDbType.Money, 8, 19, 4, SqlCompareOptions.None); // SqlDbType.Money
108
internal static readonly
SmiMetaData
DefaultNChar_NoCollation = new SmiMetaData(SqlDbType.NChar, 1, 0, 0, DefaultStringCompareOptions);// SqlDbType.NChar
109
internal static readonly
SmiMetaData
DefaultNText_NoCollation = new SmiMetaData(SqlDbType.NText, UnlimitedMaxLengthIndicator,0, 0, DefaultStringCompareOptions);// SqlDbType.NText
110
internal static readonly
SmiMetaData
DefaultNVarChar_NoCollation = new SmiMetaData(SqlDbType.NVarChar, MaxUnicodeCharacters, 0, 0, DefaultStringCompareOptions);// SqlDbType.NVarChar
111
internal static readonly
SmiMetaData
DefaultReal = new SmiMetaData(SqlDbType.Real, 4, 24, 0, SqlCompareOptions.None); // SqlDbType.Real
112
internal static readonly
SmiMetaData
DefaultUniqueIdentifier = new SmiMetaData(SqlDbType.UniqueIdentifier, 16, 0, 0, SqlCompareOptions.None); // SqlDbType.UniqueIdentifier
113
internal static readonly
SmiMetaData
DefaultSmallDateTime = new SmiMetaData(SqlDbType.SmallDateTime, 4, 16, 0, SqlCompareOptions.None); // SqlDbType.SmallDateTime
114
internal static readonly
SmiMetaData
DefaultSmallInt = new SmiMetaData(SqlDbType.SmallInt, 2, 5, 0, SqlCompareOptions.None); // SqlDbType.SmallInt
115
internal static readonly
SmiMetaData
DefaultSmallMoney = new SmiMetaData(SqlDbType.SmallMoney, 4, 10, 4, SqlCompareOptions.None); // SqlDbType.SmallMoney
116
internal static readonly
SmiMetaData
DefaultText_NoCollation = new SmiMetaData(SqlDbType.Text, UnlimitedMaxLengthIndicator,0, 0, DefaultStringCompareOptions);// SqlDbType.Text
117
internal static readonly
SmiMetaData
DefaultTimestamp = new SmiMetaData(SqlDbType.Timestamp, 8, 0, 0, SqlCompareOptions.None); // SqlDbType.Timestamp
118
internal static readonly
SmiMetaData
DefaultTinyInt = new SmiMetaData(SqlDbType.TinyInt, 1, 3, 0, SqlCompareOptions.None); // SqlDbType.TinyInt
119
internal static readonly
SmiMetaData
DefaultVarBinary = new SmiMetaData(SqlDbType.VarBinary, MaxBinaryLength, 0, 0, SqlCompareOptions.None); // SqlDbType.VarBinary
120
internal static readonly
SmiMetaData
DefaultVarChar_NoCollation = new SmiMetaData(SqlDbType.VarChar, MaxANSICharacters, 0, 0, DefaultStringCompareOptions);// SqlDbType.VarChar
121
internal static readonly
SmiMetaData
DefaultVariant = new SmiMetaData(SqlDbType.Variant, 8016, 0, 0, SqlCompareOptions.None); // SqlDbType.Variant
122
internal static readonly
SmiMetaData
DefaultXml = new SmiMetaData(SqlDbType.Xml, UnlimitedMaxLengthIndicator,0, 0, DefaultStringCompareOptions);// SqlDbType.Xml
123
internal static readonly
SmiMetaData
DefaultUdt_NoType = new SmiMetaData(SqlDbType.Udt, 0, 0, 0, SqlCompareOptions.None); // SqlDbType.Udt
124
internal static readonly
SmiMetaData
DefaultStructured = new SmiMetaData(SqlDbType.Structured, 0, 0, 0, SqlCompareOptions.None); // SqlDbType.Structured
125
internal static readonly
SmiMetaData
DefaultDate = new SmiMetaData(SqlDbType.Date, 3, 10, 0, SqlCompareOptions.None); // SqlDbType.Date
126
internal static readonly
SmiMetaData
DefaultTime = new SmiMetaData(SqlDbType.Time, 5, 0, 7, SqlCompareOptions.None); // SqlDbType.Time
127
internal static readonly
SmiMetaData
DefaultDateTime2 = new SmiMetaData(SqlDbType.DateTime2, 8, 0, 7, SqlCompareOptions.None); // SqlDbType.DateTime2
128
internal static readonly
SmiMetaData
DefaultDateTimeOffset = new SmiMetaData(SqlDbType.DateTimeOffset, 10, 0, 7, SqlCompareOptions.None); // SqlDbType.DateTimeOffset
132
internal static
SmiMetaData
DefaultChar {
146
internal static
SmiMetaData
DefaultNChar {
160
internal static
SmiMetaData
DefaultNText {
174
internal static
SmiMetaData
DefaultNVarChar {
188
internal static
SmiMetaData
DefaultText {
202
internal static
SmiMetaData
DefaultVarChar {
262
SmiMetaData
[] columns) :
624
internal static
SmiMetaData
GetDefaultForType( SqlDbType dbType ) {
655
private static
SmiMetaData
[] __defaultValues =
739
SmiMetaData
smdDflt = GetDefaultForType( dbType );
759
foreach(
SmiMetaData
fieldMd in _fieldMetaData) {
822
SmiMetaData
[] columns,
1001
SmiMetaData
[] columns,
1178
SmiMetaData
[] columns,
1460
SmiMetaData
[] columns,
fx\src\data\Microsoft\SqlServer\Server\SmiSettersStream.cs (2)
22
private
SmiMetaData
_metaData;
24
internal SmiSettersStream( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal,
SmiMetaData
metaData ) {
fx\src\data\Microsoft\SqlServer\Server\SmiTypedGetterSetter.cs (2)
46
public virtual
SmiMetaData
GetVariantType(SmiEventSink sink, int ordinal) {
418
public virtual void SetVariantMetaData( SmiEventSink sink, int ordinal,
SmiMetaData
metaData ) {
fx\src\data\Microsoft\SqlServer\Server\SmiXetterAccessMap.cs (2)
104
internal static bool IsGetterAccessValid(
SmiMetaData
metaData, SmiXetterTypeCode xetterType ) {
111
internal static bool IsSetterAccessValid(
SmiMetaData
metaData, SmiXetterTypeCode xetterType ) {
fx\src\data\Microsoft\SqlServer\Server\SqlDataRecord.cs (9)
31
static readonly
SmiMetaData
__maxNVarCharForXml = new SmiMetaData(SqlDbType.NVarChar,
SmiMetaData
.UnlimitedMaxLengthIndicator,
32
SmiMetaData
.DefaultNVarChar_NoCollation.Precision,
33
SmiMetaData
.DefaultNVarChar_NoCollation.Scale,
34
SmiMetaData
.DefaultNVarChar.LocaleId,
35
SmiMetaData
.DefaultNVarChar.CompareOptions,
74
SmiMetaData
metaData = GetSmiMetaData(ordinal);
195
SmiMetaData
colMeta = GetSmiMetaData(ordinal);
251
SmiMetaData
metaData = GetSmiMetaData(ordinal);
fx\src\data\Microsoft\SqlServer\Server\sqlpipe.cs (1)
94
if (
SmiMetaData
.MaxUnicodeCharacters < message.Length ) {
fx\src\data\Microsoft\SqlServer\Server\SqlRecordBuffer.cs (17)
58
private
SmiMetaData
_metadata; // for variant
61
internal SqlRecordBuffer(
SmiMetaData
metaData) {
339
internal
SmiMetaData
VariantType {
351
case StorageType.Boolean: return
SmiMetaData
.DefaultBit;
352
case StorageType.Byte: return
SmiMetaData
.DefaultTinyInt;
353
case StorageType.ByteArray: return
SmiMetaData
.DefaultVarBinary;
354
case StorageType.CharArray: return
SmiMetaData
.DefaultNVarChar;
355
case StorageType.DateTime: return _metadata ??
SmiMetaData
.DefaultDateTime;
356
case StorageType.DateTimeOffset: return
SmiMetaData
.DefaultDateTimeOffset;
357
case StorageType.Double: return
SmiMetaData
.DefaultFloat;
358
case StorageType.Guid: return
SmiMetaData
.DefaultUniqueIdentifier;
359
case StorageType.Int16: return
SmiMetaData
.DefaultSmallInt;
360
case StorageType.Int32: return
SmiMetaData
.DefaultInt;
361
case StorageType.Int64: return _metadata ??
SmiMetaData
.DefaultBigInt;
362
case StorageType.Single: return
SmiMetaData
.DefaultReal;
363
case StorageType.String: return _metadata ??
SmiMetaData
.DefaultNVarChar;
365
case StorageType.TimeSpan: return
SmiMetaData
.DefaultTime;
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (129)
35
const int NoLengthLimit = (int)
SmiMetaData
.UnlimitedMaxLengthIndicator; // make sure we use the same constant
59
internal static bool GetBoolean( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal,
SmiMetaData
metaData ) {
72
internal static byte GetByte( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal,
SmiMetaData
metaData ) {
84
private static long GetBytesConversion(SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal,
SmiMetaData
metaData, long fieldOffset, byte[] buffer, int bufferOffset, int length, bool throwOnNull) {
113
if ( (
SmiMetaData
.UnlimitedMaxLengthIndicator != metaData.MaxLength &&
126
internal static long GetBytesInternal( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal,
SmiMetaData
metaData, long fieldOffset, byte[] buffer, int bufferOffset, int length, bool throwOnNull ) {
161
internal static long GetChars( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal,
SmiMetaData
metaData, long fieldOffset, char[] buffer, int bufferOffset, int length ) {
189
internal static DateTime GetDateTime( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal,
SmiMetaData
metaData ) {
202
internal static DateTimeOffset GetDateTimeOffset(SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal,
SmiMetaData
metaData, bool gettersSupportKatmaiDateTime) {
215
internal static DateTimeOffset GetDateTimeOffset(SmiEventSink_Default sink, SmiTypedGetterSetter getters, int ordinal,
SmiMetaData
metaData) {
223
internal static Decimal GetDecimal( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal,
SmiMetaData
metaData ) {
235
internal static Double GetDouble( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal,
SmiMetaData
metaData ) {
247
internal static Guid GetGuid( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal,
SmiMetaData
metaData ) {
259
internal static Int16 GetInt16( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal,
SmiMetaData
metaData ) {
271
internal static Int32 GetInt32( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal,
SmiMetaData
metaData ) {
283
internal static Int64 GetInt64( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal,
SmiMetaData
metaData ) {
295
internal static Single GetSingle( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal,
SmiMetaData
metaData ) {
307
internal static SqlBinary GetSqlBinary( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal,
SmiMetaData
metaData ) {
321
internal static SqlBoolean GetSqlBoolean( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal,
SmiMetaData
metaData ) {
335
internal static SqlByte GetSqlByte( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal,
SmiMetaData
metaData ) {
349
internal static SqlBytes GetSqlBytes( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal,
SmiMetaData
metaData, SmiContext context ) {
385
internal static SqlChars GetSqlChars( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal,
SmiMetaData
metaData, SmiContext context ) {
435
internal static SqlDateTime GetSqlDateTime( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal,
SmiMetaData
metaData ) {
457
internal static SqlDecimal GetSqlDecimal( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal,
SmiMetaData
metaData ) {
478
internal static SqlDouble GetSqlDouble( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal,
SmiMetaData
metaData ) {
500
internal static SqlGuid GetSqlGuid( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal,
SmiMetaData
metaData ) {
522
internal static SqlInt16 GetSqlInt16( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal,
SmiMetaData
metaData ) {
544
internal static SqlInt32 GetSqlInt32( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal,
SmiMetaData
metaData ) {
565
internal static SqlInt64 GetSqlInt64( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal,
SmiMetaData
metaData ) {
587
internal static SqlMoney GetSqlMoney( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal,
SmiMetaData
metaData ) {
608
internal static SqlSingle GetSqlSingle( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal,
SmiMetaData
metaData ) {
630
internal static SqlString GetSqlString( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal,
SmiMetaData
metaData ) {
662
internal static SqlXml GetSqlXml( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal,
SmiMetaData
metaData, SmiContext context ) {
683
internal static String GetString( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal,
SmiMetaData
metaData ) {
695
internal static SqlSequentialStreamSmi GetSequentialStream( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal,
SmiMetaData
metaData, bool bypassTypeCheck = false ) {
707
internal static SqlSequentialTextReaderSmi GetSequentialTextReader( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal,
SmiMetaData
metaData ) {
719
internal static Stream GetStream(SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal,
SmiMetaData
metaData, bool bypassTypeCheck = false) {
747
internal static TextReader GetTextReader( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal,
SmiMetaData
metaData ) {
774
internal static TimeSpan GetTimeSpan(SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal,
SmiMetaData
metaData, bool gettersSupportKatmaiDateTime) {
787
internal static TimeSpan GetTimeSpan(SmiEventSink_Default sink, SmiTypedGetterSetter getters, int ordinal,
SmiMetaData
metaData) {
800
SmiMetaData
metaData,
838
SmiMetaData
metaData,
939
SmiMetaData
metaData,
981
SmiMetaData
metaData,
1121
internal static object NullUdtInstance(
SmiMetaData
metaData) {
1133
private static void GetNullOutputParameterSmi(
SmiMetaData
metaData, SqlBuffer targetBuffer, ref object result) {
1161
SmiMetaData
metaData, // Getter's type for this ordinal
1253
SmiMetaData
metaData, // Getter's type for this ordinal
1337
internal static void SetBoolean( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal,
SmiMetaData
metaData, Boolean value ) {
1343
internal static void SetByte( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal,
SmiMetaData
metaData, Byte value ) {
1349
internal static long SetBytes( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal,
SmiMetaData
metaData, long fieldOffset, byte[] buffer, int bufferOffset, int length ) {
1367
internal static long SetBytesLength( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal,
SmiMetaData
metaData, long length ) {
1384
internal static long SetChars( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal,
SmiMetaData
metaData, long fieldOffset, char[] buffer, int bufferOffset, int length ) {
1402
internal static void SetDateTime( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal,
SmiMetaData
metaData, DateTime value ) {
1408
internal static void SetDateTimeOffset(SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal,
SmiMetaData
metaData, DateTimeOffset value, bool settersSupportKatmaiDateTime) {
1416
internal static void SetDecimal( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal,
SmiMetaData
metaData, Decimal value ) {
1422
internal static void SetDouble( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal,
SmiMetaData
metaData, Double value ) {
1428
internal static void SetGuid( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal,
SmiMetaData
metaData, Guid value ) {
1434
internal static void SetInt16( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal,
SmiMetaData
metaData, Int16 value ) {
1440
internal static void SetInt32( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal,
SmiMetaData
metaData, Int32 value ) {
1446
internal static void SetInt64( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal,
SmiMetaData
metaData, Int64 value ) {
1452
internal static void SetSingle( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal,
SmiMetaData
metaData, Single value ) {
1458
internal static void SetSqlBinary( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal,
SmiMetaData
metaData, SqlBinary value ) {
1463
internal static void SetSqlBoolean( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal,
SmiMetaData
metaData, SqlBoolean value ) {
1469
internal static void SetSqlByte( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal,
SmiMetaData
metaData, SqlByte value ) {
1475
internal static void SetSqlBytes( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal,
SmiMetaData
metaData, SqlBytes value ) {
1481
internal static void SetSqlChars( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal,
SmiMetaData
metaData, SqlChars value ) {
1486
internal static void SetSqlDateTime( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal,
SmiMetaData
metaData, SqlDateTime value ) {
1492
internal static void SetSqlDecimal( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal,
SmiMetaData
metaData, SqlDecimal value ) {
1498
internal static void SetSqlDouble( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal,
SmiMetaData
metaData, SqlDouble value ) {
1504
internal static void SetSqlGuid( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal,
SmiMetaData
metaData, SqlGuid value ) {
1510
internal static void SetSqlInt16( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal,
SmiMetaData
metaData, SqlInt16 value ) {
1516
internal static void SetSqlInt32( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal,
SmiMetaData
metaData, SqlInt32 value ) {
1522
internal static void SetSqlInt64( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal,
SmiMetaData
metaData, SqlInt64 value ) {
1528
internal static void SetSqlMoney( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal,
SmiMetaData
metaData, SqlMoney value ) {
1534
internal static void SetSqlSingle( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal,
SmiMetaData
metaData, SqlSingle value ) {
1540
internal static void SetSqlString( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal,
SmiMetaData
metaData, SqlString value ) {
1545
internal static void SetSqlXml( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal,
SmiMetaData
metaData, SqlXml value ) {
1551
internal static void SetString( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal,
SmiMetaData
metaData, String value ) {
1557
internal static void SetTimeSpan(SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal,
SmiMetaData
metaData, TimeSpan value, bool settersSupportKatmaiDateTime) {
1571
SmiMetaData
metaData, // metadata for target setter column
1647
SmiMetaData
metaData,
1684
SmiMetaData
metaData,
1721
internal static void FillCompatibleITypedSettersFromReader( SmiEventSink_Default sink, ITypedSettersV3 setters,
SmiMetaData
[] metaData, SqlDataReader reader ) {
2035
internal static void FillCompatibleITypedSettersFromRecord(SmiEventSink_Default sink, ITypedSettersV3 setters,
SmiMetaData
[] metaData, SqlDataRecord record) {
2039
internal static void FillCompatibleITypedSettersFromRecord(SmiEventSink_Default sink, ITypedSettersV3 setters,
SmiMetaData
[] metaData, SqlDataRecord record, SmiDefaultFieldsProperty useDefaultValues) {
2155
internal static void FillCompatibleSettersFromRecord(SmiEventSink_Default sink, SmiTypedGetterSetter setters,
SmiMetaData
[] metaData, SqlDataRecord record, SmiDefaultFieldsProperty useDefaultValues)
2377
private static object GetUdt_LengthChecked( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal,
SmiMetaData
metaData ) {
2393
private static Decimal GetDecimal_PossiblyMoney(SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal,
SmiMetaData
metaData) {
2405
private static void SetDecimal_PossiblyMoney(SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal,
SmiMetaData
metaData, Decimal value) {
2434
private static void SetDateTime_Checked(SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal,
SmiMetaData
metaData, DateTime value) {
2439
private static void SetTimeSpan_Checked(SmiEventSink_Default sink, SmiTypedGetterSetter setters, int ordinal,
SmiMetaData
metaData, TimeSpan value) {
2444
private static void SetSqlDateTime_Checked(SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal,
SmiMetaData
metaData, SqlDateTime value) {
2451
private static void SetDateTime2_Checked(SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal,
SmiMetaData
metaData, DateTime value)
2457
private static void SetDate_Checked(SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal,
SmiMetaData
metaData, DateTime value)
2463
private static void SetSqlMoney_Checked(SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal,
SmiMetaData
metaData, SqlMoney value) {
2473
private static void SetByteArray_LengthChecked( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal,
SmiMetaData
metaData, byte[] buffer, int offset ) {
2479
private static void SetCharArray_LengthChecked( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal,
SmiMetaData
metaData, char[] buffer, int offset ) {
2485
private static void SetSqlBinary_LengthChecked( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal,
SmiMetaData
metaData, SqlBinary value, int offset ) {
2494
private static void SetBytes_FromRecord( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal,
SmiMetaData
metaData, SqlDataRecord record, int offset ) {
2533
private static void SetBytes_FromReader(SmiEventSink_Default sink, SmiTypedGetterSetter setters, int ordinal,
SmiMetaData
metaData, DbDataReader reader, int offset) {
2563
private static void SetSqlBytes_LengthChecked( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal,
SmiMetaData
metaData, SqlBytes value, int offset ) {
2577
private static void SetChars_FromRecord( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal,
SmiMetaData
metaData, SqlDataRecord record, int offset ) {
2623
private static void SetCharsOrString_FromReader(SmiEventSink_Default sink, SmiTypedGetterSetter setters, int ordinal,
SmiMetaData
metaData, DbDataReader reader, int offset) {
2641
private static void SetChars_FromReader(SmiEventSink_Default sink, SmiTypedGetterSetter setters, int ordinal,
SmiMetaData
metaData, DbDataReader reader, int offset) {
2676
private static void SetString_FromReader(SmiEventSink_Default sink, SmiTypedGetterSetter setters, int ordinal,
SmiMetaData
metaData, DbDataReader reader, int offset) {
2684
private static void SetSqlChars_LengthChecked( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal,
SmiMetaData
metaData, SqlChars value, int offset ) {
2698
private static void SetSqlString_LengthChecked( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal,
SmiMetaData
metaData, SqlString value, int offset ) {
2710
private static void SetString_LengthChecked( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal,
SmiMetaData
metaData, string value, int offset ) {
2716
private static void SetUdt_LengthChecked( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal,
SmiMetaData
metaData, object value ) {
2731
private static void ThrowIfInvalidSetterAccess(
SmiMetaData
metaData, ExtendedClrTypeCode setterTypeCode ) {
2743
private static bool CanAccessGetterDirectly(
SmiMetaData
metaData, ExtendedClrTypeCode setterTypeCode ) {
2763
private static bool CanAccessSetterDirectly(
SmiMetaData
metaData, ExtendedClrTypeCode setterTypeCode ) {
3182
Stream s = new SmiGettersStream( sink, getters, ordinal,
SmiMetaData
.DefaultXml );
3222
private static void SetStream_Unchecked(SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal,
SmiMetaData
metadata, StreamDataFeed feed) {
3251
private static void SetTextReader_Unchecked(SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal,
SmiMetaData
metadata, TextDataFeed feed) {
3321
private static void SetDateTime2_Unchecked(SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal,
SmiMetaData
metaData, DateTime value)
3324
setters.SetVariantMetaData(sink, ordinal,
SmiMetaData
.DefaultDateTime2);
3329
private static void SetDate_Unchecked(SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal,
SmiMetaData
metaData, DateTime value)
3332
setters.SetVariantMetaData(sink, ordinal,
SmiMetaData
.DefaultDate);
3548
private static void SetSqlMoney_Unchecked( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal,
SmiMetaData
metaData, SqlMoney value ) {
3554
setters.SetVariantMetaData( sink, ordinal,
SmiMetaData
.DefaultMoney );
3573
private static void SetSqlString_Unchecked( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal,
SmiMetaData
metaData, SqlString value, int offset, int length ) {
3583
SmiMetaData
.MaxUnicodeCharacters,
3614
System.IO.Stream target = new SmiSettersStream(sink, setters, ordinal,
SmiMetaData
.DefaultXml);
3636
SmiMetaData
metaData,
3655
SmiMetaData
fieldMetaData = metaData.FieldMetaData[i];
3686
SmiMetaData
metaData,
3709
SmiMetaData
metaData,
fx\src\data\System\Data\Sql\SqlMetaData.cs (1)
687
if (Microsoft.SqlServer.Server.
SmiMetaData
.MaxNameLength < name.Length)
fx\src\data\System\Data\SqlClient\SqlCommand.cs (7)
6268
if (size != 0 && size !=
SmiMetaData
.UnlimitedMaxLengthIndicator && !param.SizeInferred) {
6286
if (size > 0 && size != Int32.MaxValue && requestMetaData[index].MaxLength ==
SmiMetaData
.UnlimitedMaxLengthIndicator) {
6293
if (size > 0 && size != Int32.MaxValue/2 && requestMetaData[index].MaxLength ==
SmiMetaData
.UnlimitedMaxLengthIndicator) {
6300
if (size <
SmiMetaData
.DefaultTimestamp.MaxLength) {
6313
if ((mt.IsNCharType && size <
SmiMetaData
.MaxUnicodeCharacters) ||
6314
(mt.IsBinType && size <
SmiMetaData
.MaxBinaryLength) ||
6315
(mt.IsAnsiType && size <
SmiMetaData
.MaxANSICharacters)) {
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (1)
309
length = (int)
SmiMetaData
.UnlimitedMaxLengthIndicator;
fx\src\data\System\Data\SqlClient\SqlDataReaderSmi.cs (3)
149
SmiMetaData
valueMetaData = _currentColumnValuesV3.GetVariantType(_readerEventSink, ordinal);
555
if (
SmiMetaData
.UnlimitedMaxLengthIndicator == maxLength ) {
822
SmiMetaData
metaData = _currentMetaData[ordinal];
fx\src\data\System\Data\SqlClient\SqlParameter.cs (9)
348
maxlen = MSS.
SmiMetaData
.GetDefaultForType( mt.SqlDbType ).MaxLength;
398
maxLen = MSS.
SmiMetaData
.MaxBinaryLength;
401
maxLen = MSS.
SmiMetaData
.MaxANSICharacters;
404
maxLen = MSS.
SmiMetaData
.MaxUnicodeCharacters;
407
else if (( maxLen > MSS.
SmiMetaData
.MaxBinaryLength && ( SqlDbType.Binary == mt.SqlDbType || SqlDbType.VarBinary == mt.SqlDbType ))
408
|| ( maxLen > MSS.
SmiMetaData
.MaxANSICharacters && ( SqlDbType.Char == mt.SqlDbType || SqlDbType.VarChar == mt.SqlDbType ))
409
|| ( maxLen > MSS.
SmiMetaData
.MaxUnicodeCharacters&& ( SqlDbType.NChar == mt.SqlDbType || SqlDbType.NVarChar == mt.SqlDbType )) ) {
432
compareOpts = MSS.
SmiMetaData
.GetDefaultForType( mt.SqlDbType ).CompareOptions;
1584
Size = (int)(
SmiMetaData
.UnlimitedMaxLengthIndicator);
fx\src\data\System\Data\SqlClient\TdsParameterSetter.cs (1)
30
internal TdsParameterSetter(TdsParserStateObject stateObj,
SmiMetaData
md) {
fx\src\data\System\Data\SqlClient\TdsParser.cs (9)
6139
MSS.
SmiMetaData
dateTime2MetaData = MSS.
SmiMetaData
.DefaultDateTime2;
6148
MSS.
SmiMetaData
dateMetaData = MSS.
SmiMetaData
.DefaultDate;
8886
WriteUnsignedShort(unchecked((ushort)MSS.
SmiMetaData
.UnlimitedMaxLengthIndicator), stateObj);
8904
WriteUnsignedShort(unchecked((ushort)MSS.
SmiMetaData
.UnlimitedMaxLengthIndicator), stateObj);
8910
if (MSS.
SmiMetaData
.UnlimitedMaxLengthIndicator == metaData.MaxLength) {
8911
WriteUnsignedShort(unchecked((ushort)MSS.
SmiMetaData
.UnlimitedMaxLengthIndicator), stateObj);
8941
WriteUnsignedShort(unchecked((ushort)MSS.
SmiMetaData
.UnlimitedMaxLengthIndicator), stateObj);
fx\src\data\System\Data\SqlClient\TdsParserHelperClasses.cs (1)
850
internal IList<
SmiMetaData
> structuredFields;
fx\src\data\System\Data\SqlClient\TdsRecordBufferSetter.cs (3)
28
private
SmiMetaData
_metaData; // metadata describing value
41
internal TdsRecordBufferSetter(TdsParserStateObject stateObj,
SmiMetaData
md) {
191
public override void SetVariantMetaData(SmiEventSink sink, int ordinal,
SmiMetaData
metaData) {
fx\src\data\System\Data\SqlClient\TdsValueSetter.cs (9)
30
private
SmiMetaData
_metaData; // metadata describing value
34
private
SmiMetaData
_variantType; // required for sql_variant
43
internal TdsValueSetter(TdsParserStateObject stateObj,
SmiMetaData
md) {
532
Debug.Assert(
SmiMetaData
.DefaultUniqueIdentifier.MaxLength == bytes.Length, "Invalid length for guid bytes: " + bytes.Length);
552
scale =
SmiMetaData
.DefaultTime.Scale;
553
length = (byte)
SmiMetaData
.DefaultTime.MaxLength;
574
MSS.
SmiMetaData
dateTimeOffsetMetaData = MSS.
SmiMetaData
.DefaultDateTimeOffset;
595
internal void SetVariantType(
SmiMetaData
value) {