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
- ResourceAssociationSet.cs
- _ContextAwareResult.cs
- ListBoxItemWrapperAutomationPeer.cs
- RegexCode.cs
- WeakReference.cs
- ManifestResourceInfo.cs
- DrawingBrush.cs
- Attributes.cs
- FrameworkContentElement.cs
- VirtualizedItemPattern.cs
- TreeNodeClickEventArgs.cs
- PrivilegeNotHeldException.cs
- Send.cs
- SHA384Managed.cs
- ConstrainedDataObject.cs
- MessageQueueKey.cs
- ScrollBarAutomationPeer.cs
- KeyValuePair.cs
- ClientBuildManager.cs
- SystemColors.cs
- EmulateRecognizeCompletedEventArgs.cs
- HtmlTableRowCollection.cs
- CodeMethodReturnStatement.cs
- COM2IDispatchConverter.cs
- ColumnHeaderConverter.cs
- HelpInfo.cs
- MultiBindingExpression.cs
- GlyphInfoList.cs
- SynchronizationContext.cs
- TextElementCollectionHelper.cs
- PathGeometry.cs
- DataGridColumnCollection.cs
- TreeNodeClickEventArgs.cs
- GridViewRowCollection.cs
- SqlConnectionHelper.cs
- _NtlmClient.cs
- WebServiceHost.cs
- DisplayInformation.cs
- SqlComparer.cs
- MarkupCompilePass1.cs
- HttpListener.cs
- FixUpCollection.cs
- EdmItemError.cs
- ResourceSetExpression.cs
- IsolatedStorageFile.cs
- ActiveXHost.cs
- WebBrowsableAttribute.cs
- RegistrationServices.cs
- DictionaryEntry.cs
- ElementProxy.cs
- MethodExpr.cs
- Rule.cs
- CornerRadiusConverter.cs
- ReadOnlyDictionary.cs
- AudioFormatConverter.cs
- PageParserFilter.cs
- MDIControlStrip.cs
- Path.cs
- DataGridBoolColumn.cs
- ScrollItemProviderWrapper.cs
- BevelBitmapEffect.cs
- ListMarkerLine.cs
- WebPartCancelEventArgs.cs
- HttpUnhandledOperationInvoker.cs
- SerialErrors.cs
- UnsafeNativeMethodsMilCoreApi.cs
- ObjectPersistData.cs
- CqlErrorHelper.cs
- ProviderSettings.cs
- PropertyMappingExceptionEventArgs.cs
- ComplusTypeValidator.cs
- PackageFilter.cs
- PreProcessInputEventArgs.cs
- XmlSerializerFactory.cs
- GeometryConverter.cs
- ClaimTypes.cs
- FrameSecurityDescriptor.cs
- DataGridBeginningEditEventArgs.cs
- OleDbRowUpdatingEvent.cs
- StyleSheetDesigner.cs
- QueryAccessibilityHelpEvent.cs
- XmlSchemaIdentityConstraint.cs
- X509ChainPolicy.cs
- StatusStrip.cs
- ContainerFilterService.cs
- ListViewGroupItemCollection.cs
- CodeSnippetStatement.cs
- ToolStripPanelCell.cs
- OdbcException.cs
- BrushConverter.cs
- ResourceManager.cs
- SchemaCollectionPreprocessor.cs
- DocumentPageTextView.cs
- ACL.cs
- EditorPartChrome.cs
- SyntaxCheck.cs
- RadioButtonFlatAdapter.cs
- StorageTypeMapping.cs
- MulticastIPAddressInformationCollection.cs
- MatrixTransform3D.cs