Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DLinq / Dlinq / SqlClient / Common / SqlServer2KCompatibilityAnnotation.cs / 1 / SqlServer2KCompatibilityAnnotation.cs
using System; using System.Collections.Generic; using System.Text; namespace System.Data.Linq.SqlClient { ////// Annotation which indicates that the given node will cause a compatibility problem /// for the indicated set of providers. /// internal class SqlServerCompatibilityAnnotation : SqlNodeAnnotation { SqlProvider.ProviderMode[] providers; ////// Constructor /// /// The compatibility message. /// The set of providers this compatibility issue applies to. internal SqlServerCompatibilityAnnotation(string message, params SqlProvider.ProviderMode[] providers) : base(message) { this.providers = providers; } ////// Returns true if this annotation applies to the specified provider. /// internal bool AppliesTo(SqlProvider.ProviderMode provider) { foreach (SqlProvider.ProviderMode p in providers) { if (p == provider) { return true; } } return false; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. using System; using System.Collections.Generic; using System.Text; namespace System.Data.Linq.SqlClient { ////// Annotation which indicates that the given node will cause a compatibility problem /// for the indicated set of providers. /// internal class SqlServerCompatibilityAnnotation : SqlNodeAnnotation { SqlProvider.ProviderMode[] providers; ////// Constructor /// /// The compatibility message. /// The set of providers this compatibility issue applies to. internal SqlServerCompatibilityAnnotation(string message, params SqlProvider.ProviderMode[] providers) : base(message) { this.providers = providers; } ////// Returns true if this annotation applies to the specified provider. /// internal bool AppliesTo(SqlProvider.ProviderMode provider) { foreach (SqlProvider.ProviderMode p in providers) { if (p == provider) { return true; } } return false; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WSSecurityPolicy12.cs
- ConditionCollection.cs
- WebException.cs
- AssemblyNameProxy.cs
- PackageProperties.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- HttpWriter.cs
- AsyncStreamReader.cs
- EdmTypeAttribute.cs
- Debug.cs
- RootBuilder.cs
- FontClient.cs
- EntityDataSourceQueryBuilder.cs
- dtdvalidator.cs
- VisualBrush.cs
- WindowPattern.cs
- OdbcParameterCollection.cs
- InputEventArgs.cs
- SafeEventLogWriteHandle.cs
- Soap.cs
- OracleRowUpdatedEventArgs.cs
- AutoGeneratedFieldProperties.cs
- UrlPropertyAttribute.cs
- mediaclock.cs
- OleDbCommand.cs
- FixedDocumentSequencePaginator.cs
- VerificationAttribute.cs
- SessionEndingEventArgs.cs
- XsdValidatingReader.cs
- CompoundFileStorageReference.cs
- AudioStateChangedEventArgs.cs
- httpstaticobjectscollection.cs
- MailBnfHelper.cs
- SectionInformation.cs
- WrapperSecurityCommunicationObject.cs
- assemblycache.cs
- GcHandle.cs
- PointValueSerializer.cs
- EntityObject.cs
- NavigatingCancelEventArgs.cs
- DbSetClause.cs
- SmtpTransport.cs
- DataGridViewCellStateChangedEventArgs.cs
- TextComposition.cs
- RemoteArgument.cs
- PackWebRequest.cs
- NavigationWindowAutomationPeer.cs
- UnescapedXmlDiagnosticData.cs
- Condition.cs
- DmlSqlGenerator.cs
- FakeModelItemImpl.cs
- SelectionItemProviderWrapper.cs
- PropertySourceInfo.cs
- EventLogPermissionEntry.cs
- RemotingSurrogateSelector.cs
- IBuiltInEvidence.cs
- NamedPipeProcessProtocolHandler.cs
- IpcManager.cs
- PenContexts.cs
- ValidationErrorEventArgs.cs
- DataGridViewCellConverter.cs
- DocumentSequence.cs
- GuidelineCollection.cs
- BinaryWriter.cs
- CookieParameter.cs
- PolygonHotSpot.cs
- XhtmlBasicListAdapter.cs
- AndCondition.cs
- UpdateTracker.cs
- GenericRootAutomationPeer.cs
- ResourceDescriptionAttribute.cs
- Screen.cs
- InputLanguageCollection.cs
- XmlSchemaSimpleType.cs
- JavaScriptObjectDeserializer.cs
- ProxyWebPartConnectionCollection.cs
- TransactionFormatter.cs
- XmlQueryCardinality.cs
- ObjectListTitleAttribute.cs
- ClickablePoint.cs
- DataGridCellsPanel.cs
- InvokePatternIdentifiers.cs
- IntegerValidator.cs
- NonParentingControl.cs
- HelpProvider.cs
- DetailsViewInsertedEventArgs.cs
- MobileSysDescriptionAttribute.cs
- SiteMapDataSourceView.cs
- Thickness.cs
- DataBoundControlAdapter.cs
- TextEditorLists.cs
- HierarchicalDataBoundControlAdapter.cs
- ViewStateModeByIdAttribute.cs
- TreeViewItem.cs
- SinglePageViewer.cs
- LayeredChannelFactory.cs
- XmlCodeExporter.cs
- DataGridHeadersVisibilityToVisibilityConverter.cs
- FreezableCollection.cs
- XmlSchemaAnyAttribute.cs