17 references to Instance
System.Data (17)
fx\src\data\Microsoft\SqlServer\Server\sqlcontext.cs (1)
73SmiContext smiContext = SmiContextFactory.Instance.GetCurrentContext();
fx\src\data\Microsoft\SqlServer\Server\SqlDataRecord.cs (3)
601_recordContext = SmiContextFactory.Instance.GetCurrentContext(); 627_recordContext = SmiContextFactory.Instance.GetCurrentContext(); 653return InOutOfProcHelper.InProc ? SmiContextFactory.Instance.NegotiatedSmiVersion : SmiContextFactory.LatestVersion;
fx\src\data\Microsoft\SqlServer\Server\sqlpipe.cs (3)
137if (SmiContextFactory.Instance.NegotiatedSmiVersion >= SmiContextFactory.KatmaiVersion) { 182if (SmiContextFactory.Instance.NegotiatedSmiVersion >= SmiContextFactory.KatmaiVersion) { 269if (SmiContextFactory.Instance.NegotiatedSmiVersion >= SmiContextFactory.KatmaiVersion) {
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (1)
3177context = 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)
354Debug.Assert(SmiContextFactory.Instance.NegotiatedSmiVersion >= SmiContextFactory.YukonVersion); 366Debug.Assert(SmiContextFactory.Instance.NegotiatedSmiVersion >= SmiContextFactory.KatmaiVersion); 3166if (SmiContextFactory.Instance.NegotiatedSmiVersion >= SmiContextFactory.KatmaiVersion) { 4600if (SmiContextFactory.Instance.NegotiatedSmiVersion >= SmiContextFactory.KatmaiVersion) { 6255ExtendedClrTypeCode 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)
234SmiContext smiContext = SmiContextFactory.Instance.GetCurrentContext();
fx\src\data\System\Data\SqlClient\SqlInternalConnectionSmi.cs (3)
33return SmiContextFactory.Instance.ServerVersion; 171return SmiContextFactory.Instance.NegotiatedSmiVersion >= SmiContextFactory.KatmaiVersion; 183return SmiContextFactory.Instance.ServerVersion;