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
- PostBackOptions.cs
- PackageDigitalSignature.cs
- XmlSchemaAll.cs
- XPathDocument.cs
- DrawingServices.cs
- EncoderReplacementFallback.cs
- SemanticResultKey.cs
- HttpCachePolicy.cs
- MachineSettingsSection.cs
- SoapCodeExporter.cs
- HttpServerVarsCollection.cs
- DataExpression.cs
- StorageMappingFragment.cs
- AssemblyFilter.cs
- OleDbMetaDataFactory.cs
- SplayTreeNode.cs
- ZoneButton.cs
- Parsers.cs
- FixedSOMPageConstructor.cs
- ToolBarButtonDesigner.cs
- XmlSchemaAttributeGroup.cs
- HelpKeywordAttribute.cs
- CollectionViewSource.cs
- HMACSHA256.cs
- AutoResetEvent.cs
- XmlWellformedWriter.cs
- ObjectSet.cs
- TrackingMemoryStream.cs
- OleDbErrorCollection.cs
- CorrelationTokenInvalidatedHandler.cs
- RawKeyboardInputReport.cs
- RangeBase.cs
- DataGridViewBand.cs
- JsonXmlDataContract.cs
- RangeBaseAutomationPeer.cs
- XmlPreloadedResolver.cs
- XmlSerializerVersionAttribute.cs
- ErrorTableItemStyle.cs
- ConfigurationSettings.cs
- DataGridViewImageColumn.cs
- BackgroundWorker.cs
- CaseStatementSlot.cs
- PropertyIDSet.cs
- Rotation3D.cs
- Point3D.cs
- DataTableExtensions.cs
- activationcontext.cs
- HttpRequestTraceRecord.cs
- filewebresponse.cs
- TextEditorThreadLocalStore.cs
- BuildResultCache.cs
- ComplexTypeEmitter.cs
- GridEntry.cs
- CompilerCollection.cs
- ListViewContainer.cs
- _PooledStream.cs
- PrintDialog.cs
- HandlerBase.cs
- ServiceDeploymentInfo.cs
- ToolStripGripRenderEventArgs.cs
- TimeEnumHelper.cs
- SqlWorkflowPersistenceService.cs
- Ipv6Element.cs
- DeclarativeCatalogPart.cs
- ProtectedConfigurationProviderCollection.cs
- SQLByte.cs
- ProvidersHelper.cs
- FunctionImportMapping.cs
- GlyphRun.cs
- RelationshipEndMember.cs
- ClientApiGenerator.cs
- OleTxTransaction.cs
- AggregateException.cs
- CodeNamespaceImport.cs
- SingleAnimationBase.cs
- PropertyGridCommands.cs
- TabItem.cs
- CLSCompliantAttribute.cs
- SecurityPermission.cs
- PathNode.cs
- TabControl.cs
- ErrorEventArgs.cs
- WindowsListViewGroupHelper.cs
- NameTable.cs
- XmlDesignerDataSourceView.cs
- PriorityQueue.cs
- DynamicDiscoveryDocument.cs
- CalendarAutoFormat.cs
- PathNode.cs
- FormatterConverter.cs
- WebPartDisplayMode.cs
- FixedPageAutomationPeer.cs
- RequestCacheEntry.cs
- ProxyWebPart.cs
- MetabaseServerConfig.cs
- LinkedResource.cs
- TransformerConfigurationWizardBase.cs
- OciHandle.cs
- EntityDataSourceContextCreatingEventArgs.cs
- BaseComponentEditor.cs