Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DLinq / Dlinq / SqlClient / Common / SqlServer2KCompatibilityAnnotation.cs / 1305376 / 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
- NavigationPropertyEmitter.cs
- WebEventTraceProvider.cs
- PersonalizationStateInfo.cs
- DataSourceControlBuilder.cs
- FontResourceCache.cs
- SpeechAudioFormatInfo.cs
- HotSpotCollection.cs
- PtsCache.cs
- XamlStyleSerializer.cs
- ListItemCollection.cs
- ActivityDefaults.cs
- RawStylusInputCustomDataList.cs
- SafeNativeMethods.cs
- NullableDecimalSumAggregationOperator.cs
- DateTimeValueSerializer.cs
- WebPartCloseVerb.cs
- FileChangesMonitor.cs
- HandleCollector.cs
- CheckableControlBaseAdapter.cs
- StreamGeometry.cs
- TextParaClient.cs
- externdll.cs
- ElementAction.cs
- DataGridViewTopLeftHeaderCell.cs
- FilterUserControlBase.cs
- ReadOnlyAttribute.cs
- DBCommandBuilder.cs
- ParameterElementCollection.cs
- PrintEvent.cs
- PageSetupDialog.cs
- MarshalByValueComponent.cs
- WhiteSpaceTrimStringConverter.cs
- TextEmbeddedObject.cs
- SecurityPermission.cs
- MSG.cs
- HandledEventArgs.cs
- MaterializeFromAtom.cs
- XPathBinder.cs
- RepeatInfo.cs
- SmiConnection.cs
- CorruptingExceptionCommon.cs
- AlignmentYValidation.cs
- TreeSet.cs
- Base64Stream.cs
- KnownColorTable.cs
- SQLBinary.cs
- XmlAttributeCollection.cs
- SelectionRange.cs
- ElasticEase.cs
- XPathSelectionIterator.cs
- ContractTypeNameCollection.cs
- ProxyHelper.cs
- XmlSchemaSet.cs
- MarkupExtensionParser.cs
- AuthorizationRuleCollection.cs
- QueryCreatedEventArgs.cs
- ContourSegment.cs
- FormsAuthentication.cs
- ActiveXHost.cs
- WindowsGraphicsWrapper.cs
- ServiceRouteHandler.cs
- StateChangeEvent.cs
- SqlTrackingService.cs
- FormCollection.cs
- RightsManagementInformation.cs
- WebPartZoneBase.cs
- WebProxyScriptElement.cs
- OutArgumentConverter.cs
- AnnotationAuthorChangedEventArgs.cs
- AssemblyAttributes.cs
- AdapterDictionary.cs
- GeometryGroup.cs
- TraceFilter.cs
- SqlServices.cs
- AccessorTable.cs
- DecimalAnimationBase.cs
- XmlDataSourceView.cs
- SqlPersonalizationProvider.cs
- MatrixTransform3D.cs
- Model3D.cs
- EventLogEntryCollection.cs
- KeySplineConverter.cs
- TreeNodeCollection.cs
- Debugger.cs
- ListViewTableCell.cs
- ExecutionScope.cs
- XPathNode.cs
- PropertyGridView.cs
- SqlErrorCollection.cs
- ValueType.cs
- TableLayoutStyle.cs
- PathNode.cs
- XmlDataImplementation.cs
- DynamicEndpointElement.cs
- XamlFxTrace.cs
- CrossSiteScriptingValidation.cs
- datacache.cs
- ToolStripSystemRenderer.cs
- ToolboxComponentsCreatedEventArgs.cs
- Dynamic.cs