Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / DataEntityDesign / Design / System / Data / Entity / Design / EntityStoreSchemaFilterEntry.cs / 1 / EntityStoreSchemaFilterEntry.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Text; using System.Diagnostics; using System.Data.Entity.Design.Common; namespace System.Data.Entity.Design { ////// This class represent a single filter entry /// public class EntityStoreSchemaFilterEntry { private string _catalog; private string _schema; private string _name; private EntityStoreSchemaFilterObjectTypes _types; private EntityStoreSchemaFilterEffect _effect; ////// Creates a EntityStoreSchemaFilterEntry /// /// The pattern to use to select the appropriate catalog or null to not limit by catalog. /// The pattern to use to select the appropriate schema or null to not limit by schema. /// The pattern to use to select the appropriate name or null to not limit by name. /// The type of objects to apply this filter to. /// The effect that this filter should have on the results. public EntityStoreSchemaFilterEntry(string catalog, string schema, string name, EntityStoreSchemaFilterObjectTypes types, EntityStoreSchemaFilterEffect effect) { if (types == EntityStoreSchemaFilterObjectTypes.None) { throw EDesignUtil.Argument("types"); } _catalog = catalog; _schema = schema; _name = name; _types = types; _effect = effect; } ////// Creates a EntityStoreSchemaFilterEntry /// /// The pattern to use to select the appropriate catalog or null to not limit by catalog. /// The pattern to use to select the appropriate schema or null to not limit by schema. /// The pattern to use to select the appropriate name or null to not limit by name. public EntityStoreSchemaFilterEntry(string catalog, string schema, string name) :this(catalog, schema, name, EntityStoreSchemaFilterObjectTypes.All, EntityStoreSchemaFilterEffect.Allow) { } ////// Gets the pattern that will be used to select the appropriate catalog. /// public string Catalog { [DebuggerStepThroughAttribute] get { return _catalog; } } ////// Gets the pattern that will be used to select the appropriate schema. /// public string Schema { [DebuggerStepThroughAttribute] get { return _schema; } } ////// Gets the pattern that will be used to select the appropriate name. /// public string Name { [DebuggerStepThroughAttribute] get { return _name; } } ////// Gets the types of objects that this filter applies to. /// public EntityStoreSchemaFilterObjectTypes Types { [DebuggerStepThroughAttribute] get { return _types; } } ////// Gets the effect that this filter has on results. /// public EntityStoreSchemaFilterEffect Effect { [DebuggerStepThroughAttribute] get { return _effect; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Text; using System.Diagnostics; using System.Data.Entity.Design.Common; namespace System.Data.Entity.Design { ////// This class represent a single filter entry /// public class EntityStoreSchemaFilterEntry { private string _catalog; private string _schema; private string _name; private EntityStoreSchemaFilterObjectTypes _types; private EntityStoreSchemaFilterEffect _effect; ////// Creates a EntityStoreSchemaFilterEntry /// /// The pattern to use to select the appropriate catalog or null to not limit by catalog. /// The pattern to use to select the appropriate schema or null to not limit by schema. /// The pattern to use to select the appropriate name or null to not limit by name. /// The type of objects to apply this filter to. /// The effect that this filter should have on the results. public EntityStoreSchemaFilterEntry(string catalog, string schema, string name, EntityStoreSchemaFilterObjectTypes types, EntityStoreSchemaFilterEffect effect) { if (types == EntityStoreSchemaFilterObjectTypes.None) { throw EDesignUtil.Argument("types"); } _catalog = catalog; _schema = schema; _name = name; _types = types; _effect = effect; } ////// Creates a EntityStoreSchemaFilterEntry /// /// The pattern to use to select the appropriate catalog or null to not limit by catalog. /// The pattern to use to select the appropriate schema or null to not limit by schema. /// The pattern to use to select the appropriate name or null to not limit by name. public EntityStoreSchemaFilterEntry(string catalog, string schema, string name) :this(catalog, schema, name, EntityStoreSchemaFilterObjectTypes.All, EntityStoreSchemaFilterEffect.Allow) { } ////// Gets the pattern that will be used to select the appropriate catalog. /// public string Catalog { [DebuggerStepThroughAttribute] get { return _catalog; } } ////// Gets the pattern that will be used to select the appropriate schema. /// public string Schema { [DebuggerStepThroughAttribute] get { return _schema; } } ////// Gets the pattern that will be used to select the appropriate name. /// public string Name { [DebuggerStepThroughAttribute] get { return _name; } } ////// Gets the types of objects that this filter applies to. /// public EntityStoreSchemaFilterObjectTypes Types { [DebuggerStepThroughAttribute] get { return _types; } } ////// Gets the effect that this filter has on results. /// public EntityStoreSchemaFilterEffect Effect { [DebuggerStepThroughAttribute] get { return _effect; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Floater.cs
- ButtonChrome.cs
- QuaternionAnimation.cs
- PasswordBox.cs
- WebHttpBindingCollectionElement.cs
- CompleteWizardStep.cs
- TcpHostedTransportConfiguration.cs
- BooleanAnimationUsingKeyFrames.cs
- ImageSource.cs
- ResourceDescriptionAttribute.cs
- TabControl.cs
- Decorator.cs
- EventHandlersStore.cs
- DocumentViewerBaseAutomationPeer.cs
- CssStyleCollection.cs
- DbgUtil.cs
- DataGridViewButtonCell.cs
- StylusPointPropertyInfoDefaults.cs
- FilterQuery.cs
- DbProviderSpecificTypePropertyAttribute.cs
- Track.cs
- SQLGuid.cs
- StreamReader.cs
- OrderByBuilder.cs
- SourceElementsCollection.cs
- LogoValidationException.cs
- ProviderUtil.cs
- XmlEncodedRawTextWriter.cs
- IndexedString.cs
- UncommonField.cs
- SourceLineInfo.cs
- JournalNavigationScope.cs
- IdnElement.cs
- ExtensibleClassFactory.cs
- HttpServerVarsCollection.cs
- Grant.cs
- TextSearch.cs
- InvalidOperationException.cs
- MappingException.cs
- ComplexTypeEmitter.cs
- SByteConverter.cs
- AsyncCompletedEventArgs.cs
- ActivationProxy.cs
- ReadOnlyDictionary.cs
- BaseResourcesBuildProvider.cs
- CommandManager.cs
- BindingExpression.cs
- GorillaCodec.cs
- CompareValidator.cs
- AppDomainAttributes.cs
- serverconfig.cs
- PersonalizablePropertyEntry.cs
- TreeViewItemAutomationPeer.cs
- MetadataItem_Static.cs
- Predicate.cs
- PngBitmapDecoder.cs
- WebPartCatalogAddVerb.cs
- DocumentSequenceHighlightLayer.cs
- ProtocolsConfigurationEntry.cs
- DetailsViewRow.cs
- WebPageTraceListener.cs
- WebDisplayNameAttribute.cs
- SourceExpressionException.cs
- AuthorizationSection.cs
- RecipientInfo.cs
- SafeSerializationManager.cs
- UrlAuthorizationModule.cs
- InternalResources.cs
- ResourceIDHelper.cs
- TextParaLineResult.cs
- ComponentDispatcherThread.cs
- RoleManagerModule.cs
- ChannelTraceRecord.cs
- GenericTypeParameterBuilder.cs
- XmlSchemaType.cs
- shaperfactory.cs
- TypeExtensionConverter.cs
- OracleInfoMessageEventArgs.cs
- ReferencedType.cs
- PersonalizationState.cs
- ZeroOpNode.cs
- BitmapScalingModeValidation.cs
- XmlSchemaFacet.cs
- StringComparer.cs
- TailCallAnalyzer.cs
- WebSysDisplayNameAttribute.cs
- GridViewCancelEditEventArgs.cs
- PageTheme.cs
- ListCollectionView.cs
- FullTrustAssemblyCollection.cs
- LoadItemsEventArgs.cs
- HtmlControlPersistable.cs
- PathSegmentCollection.cs
- DataServiceConfiguration.cs
- ColorConverter.cs
- CacheSection.cs
- WpfXamlMember.cs
- SmtpReplyReaderFactory.cs
- MetadataWorkspace.cs
- DataTableMapping.cs