73 instantiations of SqlMetaData
System.Data (73)
fx\src\data\Microsoft\SqlServer\Server\MetadataUtilsSmi.cs (2)
487
return new
SqlMetaData
(source.Name,
501
return new
SqlMetaData
(source.Name,
fx\src\data\System\Data\Sql\SqlMetaData.cs (70)
1132
case TypeCode.Boolean: smd = new
SqlMetaData
(name, SqlDbType.Bit); break;
1133
case TypeCode.Byte: smd = new
SqlMetaData
(name, SqlDbType.TinyInt); break;
1134
case TypeCode.Char: smd = new
SqlMetaData
(name, SqlDbType.NVarChar, 1 ); break;
1135
case TypeCode.DateTime: smd = new
SqlMetaData
(name, SqlDbType.DateTime); break;
1141
smd = new
SqlMetaData
(name, SqlDbType.Decimal, sd.Precision, sd.Scale);
1144
case TypeCode.Double: smd = new
SqlMetaData
(name, SqlDbType.Float); break;
1146
case TypeCode.Int16: smd = new
SqlMetaData
(name, SqlDbType.SmallInt); break;
1147
case TypeCode.Int32: smd = new
SqlMetaData
(name, SqlDbType.Int); break;
1148
case TypeCode.Int64: smd = new
SqlMetaData
(name, SqlDbType.BigInt); break;
1150
case TypeCode.Single: smd = new
SqlMetaData
(name, SqlDbType.Real); break;
1159
smd = new
SqlMetaData
(name, SqlDbType.NVarChar, maxLen);
1174
smd = new
SqlMetaData
(name, SqlDbType.VarBinary, maxLen);
1184
smd = new
SqlMetaData
(name, SqlDbType.NVarChar, maxLen);
1187
smd = new
SqlMetaData
(name, SqlDbType.UniqueIdentifier);
1189
smd = new
SqlMetaData
(name, SqlDbType.Variant);
1205
smd = new
SqlMetaData
(name, SqlDbType.VarBinary, maxLen);
1208
smd = new
SqlMetaData
(name, SqlDbType.Bit);
1210
smd = new
SqlMetaData
(name, SqlDbType.TinyInt);
1212
smd = new
SqlMetaData
(name, SqlDbType.DateTime);
1214
smd = new
SqlMetaData
(name, SqlDbType.Float);
1216
smd = new
SqlMetaData
(name, SqlDbType.UniqueIdentifier);
1218
smd = new
SqlMetaData
(name, SqlDbType.SmallInt);
1220
smd = new
SqlMetaData
(name, SqlDbType.Int);
1222
smd = new
SqlMetaData
(name, SqlDbType.BigInt);
1224
smd = new
SqlMetaData
(name, SqlDbType.Money);
1240
smd = new
SqlMetaData
(name, SqlDbType.Decimal, bPrec, scale);
1243
smd = new
SqlMetaData
(name, SqlDbType.Real);
1255
smd = new
SqlMetaData
(name, SqlDbType.NVarChar, maxLen, ss.LCID, ss.SqlCompareOptions);
1259
smd = new
SqlMetaData
(name, SqlDbType.NVarChar, sxm_rgDefaults[(int)SqlDbType.NVarChar].MaxLength);
1277
smd = new
SqlMetaData
(name, SqlDbType.NVarChar, maxLen);
1292
smd = new
SqlMetaData
(name, SqlDbType.VarBinary, maxLen);
1295
smd = new
SqlMetaData
(name, SqlDbType.Xml);
1297
smd = new
SqlMetaData
(name, SqlDbType.Time, 0, InferScaleFromTimeTicks(((TimeSpan)value).Ticks));
1299
smd = new
SqlMetaData
(name, SqlDbType.DateTimeOffset, 0, InferScaleFromTimeTicks(((DateTimeOffset)value).Ticks));
1432
SqlMetaData mdnew = new
SqlMetaData
(md.Name, md.SqlDbType, SqlMetaData.Max, 0, 0, md.LocaleId,
1565
new
SqlMetaData
("bigint", SqlDbType.BigInt,
1567
new
SqlMetaData
("binary", SqlDbType.Binary,
1569
new
SqlMetaData
("bit", SqlDbType.Bit,
1571
new
SqlMetaData
("char", SqlDbType.Char,
1573
new
SqlMetaData
("datetime", SqlDbType.DateTime,
1575
new
SqlMetaData
("decimal", SqlDbType.Decimal,
1577
new
SqlMetaData
("float", SqlDbType.Float,
1579
new
SqlMetaData
("image", SqlDbType.Image,
1581
new
SqlMetaData
("int", SqlDbType.Int,
1583
new
SqlMetaData
("money", SqlDbType.Money,
1585
new
SqlMetaData
("nchar", SqlDbType.NChar,
1587
new
SqlMetaData
("ntext", SqlDbType.NText,
1589
new
SqlMetaData
("nvarchar", SqlDbType.NVarChar,
1591
new
SqlMetaData
("real", SqlDbType.Real,
1593
new
SqlMetaData
("uniqueidentifier", SqlDbType.UniqueIdentifier,
1595
new
SqlMetaData
("smalldatetime", SqlDbType.SmallDateTime,
1597
new
SqlMetaData
("smallint", SqlDbType.SmallInt,
1599
new
SqlMetaData
("smallmoney", SqlDbType.SmallMoney,
1601
new
SqlMetaData
("text", SqlDbType.Text,
1603
new
SqlMetaData
("timestamp", SqlDbType.Timestamp,
1605
new
SqlMetaData
("tinyint", SqlDbType.TinyInt,
1607
new
SqlMetaData
("varbinary", SqlDbType.VarBinary,
1609
new
SqlMetaData
("varchar", SqlDbType.VarChar,
1611
new
SqlMetaData
("sql_variant", SqlDbType.Variant,
1613
new
SqlMetaData
("nvarchar", SqlDbType.NVarChar,
1615
new
SqlMetaData
("xml", SqlDbType.Xml,
1617
new
SqlMetaData
("nvarchar", SqlDbType.NVarChar,
1619
new
SqlMetaData
("nvarchar", SqlDbType.NVarChar,
1621
new
SqlMetaData
("nvarchar", SqlDbType.NVarChar,
1623
new
SqlMetaData
("udt", SqlDbType.Udt,
1625
new
SqlMetaData
("table", SqlDbType.Structured,
1627
new
SqlMetaData
("date", SqlDbType.Date,
1629
new
SqlMetaData
("time", SqlDbType.Time,
1631
new
SqlMetaData
("datetime2", SqlDbType.DateTime2,
1633
new
SqlMetaData
("datetimeoffset", SqlDbType.DateTimeOffset,
fx\src\data\System\Data\SqlClient\SqlParameter.cs (1)
350
return new
SqlMetaData
(this.ParameterName, mt.SqlDbType, maxlen, GetActualPrecision(), GetActualScale(), LocaleId, CompareInfo,
28 references to SqlMetaData
System.Data (28)
fx\src\data\Microsoft\SqlServer\Server\MetadataUtilsSmi.cs (3)
485
static internal
SqlMetaData
SmiExtendedMetaDataToSqlMetaData(SmiExtendedMetaData source) {
513
internal static SmiExtendedMetaData SqlMetaDataToSmiExtendedMetaData(
SqlMetaData
source ) {
572
static internal bool IsCompatible(SmiMetaData firstMd,
SqlMetaData
secondMd) {
fx\src\data\Microsoft\SqlServer\Server\SqlDataRecord.cs (11)
27
SqlMetaData
[] _columnMetaData;
52
SqlMetaData
metaData = GetSqlMetaData(ordinal);
67
SqlMetaData
md = GetSqlMetaData(ordinal);
238
public virtual
SqlMetaData
GetSqlMetaData(int ordinal) {
245
SqlMetaData
md = GetSqlMetaData(ordinal);
369
SqlMetaData
metaData = GetSqlMetaData(i);
393
SqlMetaData
metaData = GetSqlMetaData(ordinal);
578
public SqlDataRecord( params
SqlMetaData
[] metaData ) {
584
_columnMetaData = new
SqlMetaData
[metaData.Length];
617
_columnMetaData = new
SqlMetaData
[metaData.Length];
657
internal
SqlMetaData
[] InternalGetMetaData() {
fx\src\data\Microsoft\SqlServer\Server\sqlpipe.cs (1)
28
SqlMetaData
[] _metaDataSent; // Metadata of last resultset started (for push model). Overloaded to indicate if push started or not (non-null/null)
fx\src\data\System\Data\Sql\SqlMetaData.cs (11)
487
if (
SqlMetaData
.Max != maxLength)
501
if (
SqlMetaData
.Max != maxLength)
556
if (
SqlMetaData
.Max != maxLength)
1125
public static
SqlMetaData
InferFromValue(object value, String name) {
1128
SqlMetaData
smd = null;
1423
internal static
SqlMetaData
GetPartialLengthMetaData(
SqlMetaData
md) {
1432
SqlMetaData
mdnew = new SqlMetaData(md.Name, md.SqlDbType,
SqlMetaData
.Max, 0, 0, md.LocaleId,
1551
SqlMetaData
smdDflt = sxm_rgDefaults[(int)dbType];
1562
internal static
SqlMetaData
[] sxm_rgDefaults =
fx\src\data\System\Data\SqlClient\SqlParameter.cs (2)
336
private
SqlMetaData
MetaData {
1173
SqlMetaData
colMeta = firstRecord.GetSqlMetaData(i);