1 instantiation of SmiContextFactory
System.Data (1)
fx\src\data\Microsoft\SqlServer\Server\SmiContextFactory.cs (1)
17
public static readonly SmiContextFactory Instance = new
SmiContextFactory
();
45 references to SmiContextFactory
System.Data (45)
fx\src\data\Microsoft\SqlServer\Server\MetadataUtilsSmi.cs (5)
257
if (smiVersion >=
SmiContextFactory
.KatmaiVersion) {
355
if (value.GetType() == typeof(TimeSpan) && smiVersion >=
SmiContextFactory
.KatmaiVersion)
359
if (value.GetType() == typeof(DateTimeOffset) && smiVersion >=
SmiContextFactory
.KatmaiVersion)
471
if (
SmiContextFactory
.LatestVersion == smiVersion) {
476
Debug.Assert(
SmiContextFactory
.YukonVersion == smiVersion, "Other versions should have been eliminated during link stage");
fx\src\data\Microsoft\SqlServer\Server\SmiContextFactory.cs (1)
17
public static readonly
SmiContextFactory
Instance = new SmiContextFactory();
fx\src\data\Microsoft\SqlServer\Server\sqlcontext.cs (3)
73
SmiContext smiContext =
SmiContextFactory
.Instance.GetCurrentContext();
75
SqlContext result = (SqlContext)smiContext.GetContextValue( (int)
SmiContextFactory
.ContextKey.SqlContext );
79
smiContext.SetContextValue( (int)
SmiContextFactory
.ContextKey.SqlContext, result );
fx\src\data\Microsoft\SqlServer\Server\SqlDataRecord.cs (10)
76
if (SmiVersion >=
SmiContextFactory
.KatmaiVersion) {
252
if (SmiVersion >=
SmiContextFactory
.KatmaiVersion) {
380
if (SmiVersion >=
SmiContextFactory
.KatmaiVersion) {
400
if (SmiVersion >=
SmiContextFactory
.KatmaiVersion) {
475
ValueUtilsSmi.SetTimeSpan(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal), value, SmiVersion >=
SmiContextFactory
.KatmaiVersion);
480
ValueUtilsSmi.SetDateTimeOffset(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal), value, SmiVersion >=
SmiContextFactory
.KatmaiVersion);
601
_recordContext =
SmiContextFactory
.Instance.GetCurrentContext();
627
_recordContext =
SmiContextFactory
.Instance.GetCurrentContext();
653
return InOutOfProcHelper.InProc ?
SmiContextFactory
.Instance.NegotiatedSmiVersion :
SmiContextFactory
.LatestVersion;
fx\src\data\Microsoft\SqlServer\Server\sqlpipe.cs (6)
137
if (
SmiContextFactory
.Instance.NegotiatedSmiVersion >=
SmiContextFactory
.KatmaiVersion) {
182
if (
SmiContextFactory
.Instance.NegotiatedSmiVersion >=
SmiContextFactory
.KatmaiVersion) {
269
if (
SmiContextFactory
.Instance.NegotiatedSmiVersion >=
SmiContextFactory
.KatmaiVersion) {
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (3)
1974
SmiContextFactory
.KatmaiVersion
3177
context =
SmiContextFactory
.Instance.GetCurrentContext(); // In the future we need to push the context checking to a higher level
3668
SmiContextFactory
.KatmaiVersion
fx\src\data\System\Data\SqlClient\SqlCommand.cs (9)
354
Debug.Assert(
SmiContextFactory
.Instance.NegotiatedSmiVersion >=
SmiContextFactory
.YukonVersion);
366
Debug.Assert(
SmiContextFactory
.Instance.NegotiatedSmiVersion >=
SmiContextFactory
.KatmaiVersion);
3166
if (
SmiContextFactory
.Instance.NegotiatedSmiVersion >=
SmiContextFactory
.KatmaiVersion) {
4600
if (
SmiContextFactory
.Instance.NegotiatedSmiVersion >=
SmiContextFactory
.KatmaiVersion) {
6255
ExtendedClrTypeCode typeCode = MetaDataUtilsSmi.DetermineExtendedTypeCodeForUseWithSqlDbType(requestMetaData[index].SqlDbType, requestMetaData[index].IsMultiValued, value, null /* parameters don't use CLR Type for UDTs */,
SmiContextFactory
.Instance.NegotiatedSmiVersion);
fx\src\data\System\Data\SqlClient\SqlConnectionFactory.cs (3)
234
SmiContext smiContext =
SmiContextFactory
.Instance.GetCurrentContext();
236
SqlInternalConnectionSmi result = (SqlInternalConnectionSmi)smiContext.GetContextValue((int)
SmiContextFactory
.ContextKey.Connection);
245
smiContext.SetContextValue((int)
SmiContextFactory
.ContextKey.Connection, result);
fx\src\data\System\Data\SqlClient\SqlInternalConnectionSmi.cs (4)
33
return
SmiContextFactory
.Instance.ServerVersion;
171
return
SmiContextFactory
.Instance.NegotiatedSmiVersion >=
SmiContextFactory
.KatmaiVersion;
183
return
SmiContextFactory
.Instance.ServerVersion;
fx\src\data\System\Data\SqlClient\TdsParser.cs (1)
8800
metaData.SqlDbType, metaData.IsMultiValued, value, null, MSS.
SmiContextFactory
.KatmaiVersion);