Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- DataGridTextBox.cs
- HandleCollector.cs
- BrowserCapabilitiesCompiler.cs
- DbParameterHelper.cs
- GenericRootAutomationPeer.cs
- ConditionBrowserDialog.cs
- RegisteredHiddenField.cs
- AmbientValueAttribute.cs
- _ListenerRequestStream.cs
- ConfigurationStrings.cs
- MarkupCompilePass1.cs
- SafeNativeMethods.cs
- GatewayIPAddressInformationCollection.cs
- NumericPagerField.cs
- XmlAttributeProperties.cs
- SqlUserDefinedTypeAttribute.cs
- TextServicesProperty.cs
- ScopelessEnumAttribute.cs
- SecurityElement.cs
- ToolBarButton.cs
- OutputScopeManager.cs
- FixedSOMTextRun.cs
- WpfKnownTypeInvoker.cs
- HttpFormatExtensions.cs
- RuntimeHelpers.cs
- SerializationHelper.cs
- RowsCopiedEventArgs.cs
- DesignerVerbCollection.cs
- BitmapEffectDrawing.cs
- MsmqIntegrationElement.cs
- BufferedGraphics.cs
- Context.cs
- CollectionBuilder.cs
- DataGridViewTopRowAccessibleObject.cs
- DataGridViewRowCancelEventArgs.cs
- CodeTypeReferenceExpression.cs
- AppSecurityManager.cs
- SoapAttributeAttribute.cs
- BindingExpressionBase.cs
- ReaderOutput.cs
- HttpInputStream.cs
- NumberFormatInfo.cs
- EntityDataSourceWizardForm.cs
- EntryIndex.cs
- WindowsListViewGroupSubsetLink.cs
- AxHost.cs
- ServerIdentity.cs
- WorkflowLayouts.cs
- WebProxyScriptElement.cs
- WSAddressing10ProblemHeaderQNameFault.cs
- UserPersonalizationStateInfo.cs
- XmlSchemaSubstitutionGroup.cs
- SkipStoryboardToFill.cs
- ControlPager.cs
- DiagnosticsConfigurationHandler.cs
- StorageMappingItemCollection.cs
- TreeNodeCollection.cs
- SamlAssertionDirectKeyIdentifierClause.cs
- MailWebEventProvider.cs
- AppDomainAttributes.cs
- DataServiceRequest.cs
- Signature.cs
- CAGDesigner.cs
- FontConverter.cs
- XmlQualifiedName.cs
- XmlCompatibilityReader.cs
- DataGridViewTextBoxEditingControl.cs
- MatchAttribute.cs
- PolicyImporterElementCollection.cs
- EventLogPermissionEntry.cs
- AdornedElementPlaceholder.cs
- LinqDataSourceSelectEventArgs.cs
- OdbcStatementHandle.cs
- InternalConfigRoot.cs
- FileClassifier.cs
- XamlGridLengthSerializer.cs
- XmlAtomErrorReader.cs
- AllMembershipCondition.cs
- XmlIlVisitor.cs
- DropDownButton.cs
- EntityCommandExecutionException.cs
- PathFigure.cs
- ProjectionPlan.cs
- BrowserTree.cs
- Transform.cs
- BaseTemplateCodeDomTreeGenerator.cs
- MatrixUtil.cs
- InheritanceAttribute.cs
- UnauthorizedWebPart.cs
- StaticSiteMapProvider.cs
- GlobalEventManager.cs
- BatchWriter.cs
- CustomLineCap.cs
- Grid.cs
- OneOf.cs
- LambdaExpression.cs
- GatewayDefinition.cs
- MiniParameterInfo.cs
- FormsAuthenticationUser.cs
- ContextMenu.cs