17 references to Instance
System.Data (17)
fx\src\data\Microsoft\SqlServer\Server\sqlcontext.cs (1)
73
SmiContext smiContext = SmiContextFactory.
Instance
.GetCurrentContext();
fx\src\data\Microsoft\SqlServer\Server\SqlDataRecord.cs (3)
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 (3)
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 (1)
3177
context = SmiContextFactory.
Instance
.GetCurrentContext(); // In the future we need to push the context checking to a higher level
fx\src\data\System\Data\SqlClient\SqlCommand.cs (5)
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 (1)
234
SmiContext smiContext = SmiContextFactory.
Instance
.GetCurrentContext();
fx\src\data\System\Data\SqlClient\SqlInternalConnectionSmi.cs (3)
33
return SmiContextFactory.
Instance
.ServerVersion;
171
return SmiContextFactory.
Instance
.NegotiatedSmiVersion >= SmiContextFactory.KatmaiVersion;
183
return SmiContextFactory.
Instance
.ServerVersion;