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
- Column.cs
- MediaCommands.cs
- DtrList.cs
- SecureStringHasher.cs
- Preprocessor.cs
- ClearCollection.cs
- XmlAnyElementAttributes.cs
- DetailsViewInsertedEventArgs.cs
- NumberFormatInfo.cs
- HttpConfigurationSystem.cs
- ErasingStroke.cs
- EntityDataSourceContainerNameItem.cs
- RequestCachingSection.cs
- UserControl.cs
- ForAllOperator.cs
- BitStack.cs
- EventPrivateKey.cs
- TypeLoader.cs
- WindowsFormsSectionHandler.cs
- sqlinternaltransaction.cs
- InkSerializer.cs
- QueryAccessibilityHelpEvent.cs
- AttachedAnnotationChangedEventArgs.cs
- CacheModeValueSerializer.cs
- GeometryGroup.cs
- SvcMapFileSerializer.cs
- CommandPlan.cs
- StatusBarItem.cs
- PreProcessInputEventArgs.cs
- EventListener.cs
- StrongName.cs
- SecureConversationVersion.cs
- DataSourceSelectArguments.cs
- WebBrowserContainer.cs
- _LocalDataStoreMgr.cs
- BindingExpression.cs
- PerspectiveCamera.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- PerfCounters.cs
- IIS7UserPrincipal.cs
- ProviderIncompatibleException.cs
- Opcode.cs
- StateBag.cs
- iisPickupDirectory.cs
- AddingNewEventArgs.cs
- MessageQueue.cs
- OdbcConnectionStringbuilder.cs
- HMACSHA1.cs
- PageContentCollection.cs
- LineUtil.cs
- SimpleLine.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- QueryResponse.cs
- PageParserFilter.cs
- PassportPrincipal.cs
- ThreadStateException.cs
- HttpCacheParams.cs
- ServiceHttpModule.cs
- LinearKeyFrames.cs
- XPathException.cs
- WebRequestModulesSection.cs
- AttachInfo.cs
- HelloOperation11AsyncResult.cs
- WizardPanel.cs
- ProfileEventArgs.cs
- ObjectDataSourceEventArgs.cs
- VideoDrawing.cs
- HttpRawResponse.cs
- ScriptControlDescriptor.cs
- DropShadowEffect.cs
- processwaithandle.cs
- DeviceContext2.cs
- NameSpaceExtractor.cs
- NetStream.cs
- StaticSiteMapProvider.cs
- OdbcDataAdapter.cs
- ColumnClickEvent.cs
- ReflectTypeDescriptionProvider.cs
- UInt16Storage.cs
- HttpModulesSection.cs
- ExpressionBuilderCollection.cs
- AstTree.cs
- CustomWebEventKey.cs
- ToolStripRenderer.cs
- StickyNoteHelper.cs
- QueryModel.cs
- StopStoryboard.cs
- ipaddressinformationcollection.cs
- ContentType.cs
- CellTreeNodeVisitors.cs
- XmlSchemaGroup.cs
- Mouse.cs
- DbModificationClause.cs
- CustomSignedXml.cs
- ConfigurationManagerHelper.cs
- StorageEndPropertyMapping.cs
- CachedBitmap.cs
- XmlSchemaDocumentation.cs
- WindowsClaimSet.cs
- SwitchCase.cs