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
- XmlEnumAttribute.cs
- Delegate.cs
- AdornedElementPlaceholder.cs
- RenderContext.cs
- RegexBoyerMoore.cs
- PermissionToken.cs
- CustomErrorCollection.cs
- parserscommon.cs
- MSG.cs
- WorkflowViewManager.cs
- HtmlForm.cs
- LingerOption.cs
- ManagementObject.cs
- FlowDocumentScrollViewer.cs
- X500Name.cs
- RsaElement.cs
- TextCollapsingProperties.cs
- CompilationRelaxations.cs
- PageBuildProvider.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- RunClient.cs
- CodeDirectiveCollection.cs
- typedescriptorpermissionattribute.cs
- SecurityCriticalDataForSet.cs
- TextRange.cs
- OperationFormatStyle.cs
- ListViewAutomationPeer.cs
- TextViewElement.cs
- MtomMessageEncodingBindingElement.cs
- ThemeInfoAttribute.cs
- WebException.cs
- ClipboardData.cs
- ContentElementCollection.cs
- ListControl.cs
- MetadataItemSerializer.cs
- FirstQueryOperator.cs
- MimeFormReflector.cs
- GenericTypeParameterBuilder.cs
- XamlBrushSerializer.cs
- GroupByQueryOperator.cs
- FirstMatchCodeGroup.cs
- GeometryModel3D.cs
- InstallerTypeAttribute.cs
- ISO2022Encoding.cs
- Size3D.cs
- TypedOperationInfo.cs
- DataSvcMapFileSerializer.cs
- OperationResponse.cs
- DataTable.cs
- StringFreezingAttribute.cs
- Helpers.cs
- Typography.cs
- BaseDataList.cs
- PerformanceCounterManager.cs
- Number.cs
- BitmapEffectDrawingContent.cs
- ModelFunction.cs
- WmlListAdapter.cs
- PngBitmapDecoder.cs
- SerializationObjectManager.cs
- RelationshipFixer.cs
- BaseCodePageEncoding.cs
- ComponentDispatcherThread.cs
- System.Data_BID.cs
- TextRangeEditTables.cs
- WindowsListViewSubItem.cs
- __TransparentProxy.cs
- OracleFactory.cs
- EventTrigger.cs
- PersonalizationProvider.cs
- ButtonRenderer.cs
- PingOptions.cs
- DoubleAverageAggregationOperator.cs
- XXXInfos.cs
- KeyInfo.cs
- ErrorLog.cs
- Native.cs
- PropertyMetadata.cs
- UIElement.cs
- AutomationPropertyInfo.cs
- Win32Exception.cs
- TrustManagerMoreInformation.cs
- Evaluator.cs
- CodeVariableDeclarationStatement.cs
- DataBindingCollection.cs
- EmptyControlCollection.cs
- EntityKeyElement.cs
- Module.cs
- PointHitTestResult.cs
- SchemaObjectWriter.cs
- BooleanAnimationBase.cs
- NamedElement.cs
- MetadataArtifactLoader.cs
- ProvidersHelper.cs
- ThemeDirectoryCompiler.cs
- WebPartVerbsEventArgs.cs
- ComPlusDiagnosticTraceRecords.cs
- ExecutionEngineException.cs
- SvcMapFile.cs
- RelationshipWrapper.cs