Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- ResourcesChangeInfo.cs
- UITypeEditor.cs
- AdRotatorDesigner.cs
- dbdatarecord.cs
- DelegateTypeInfo.cs
- ProgressBarBrushConverter.cs
- NetworkAddressChange.cs
- PerformanceCounterPermissionEntryCollection.cs
- HwndMouseInputProvider.cs
- GroupDescription.cs
- PartialArray.cs
- TextWriterEngine.cs
- CustomErrorsSectionWrapper.cs
- QuaternionAnimation.cs
- CheckBoxFlatAdapter.cs
- EntityTypeEmitter.cs
- VersionedStream.cs
- FormsIdentity.cs
- Assembly.cs
- DataGridViewTopLeftHeaderCell.cs
- ClientFormsIdentity.cs
- RegexMatch.cs
- CatalogPartDesigner.cs
- XamlStream.cs
- ResXResourceWriter.cs
- invalidudtexception.cs
- PreservationFileWriter.cs
- Sentence.cs
- ToolStripMenuItem.cs
- ListItem.cs
- TableLayoutColumnStyleCollection.cs
- TemplateBindingExtensionConverter.cs
- MediaCommands.cs
- DesignerTextBoxAdapter.cs
- XmlReflectionMember.cs
- SecurityElement.cs
- TemplateXamlTreeBuilder.cs
- Message.cs
- SchemaObjectWriter.cs
- StreamReader.cs
- VectorCollectionValueSerializer.cs
- CorrelationExtension.cs
- UICuesEvent.cs
- KerberosRequestorSecurityTokenAuthenticator.cs
- SQLDouble.cs
- BackgroundWorker.cs
- SourceSwitch.cs
- MenuItemStyleCollection.cs
- DesignerVerbCollection.cs
- GenericAuthenticationEventArgs.cs
- SplineKeyFrames.cs
- NullableConverter.cs
- X509WindowsSecurityToken.cs
- ProvidePropertyAttribute.cs
- DataGridLinkButton.cs
- PreProcessInputEventArgs.cs
- DataSourceControl.cs
- CopyCodeAction.cs
- MenuAutoFormat.cs
- PageCatalogPart.cs
- CodeDOMProvider.cs
- TitleStyle.cs
- InvalidCastException.cs
- CheckBox.cs
- DataGridLength.cs
- _AcceptOverlappedAsyncResult.cs
- PersonalizationProviderHelper.cs
- BaseAppDomainProtocolHandler.cs
- DrawListViewItemEventArgs.cs
- HttpApplicationStateWrapper.cs
- DelegateOutArgument.cs
- IsolatedStorageFile.cs
- ProxyRpc.cs
- InternalEnumValidator.cs
- CancellationTokenRegistration.cs
- SafeNativeMethodsOther.cs
- HostProtectionException.cs
- Int64.cs
- _ContextAwareResult.cs
- X509SecurityTokenAuthenticator.cs
- Adorner.cs
- ToolStripCollectionEditor.cs
- XmlDocumentSerializer.cs
- TrimSurroundingWhitespaceAttribute.cs
- Win32.cs
- QueryOpcode.cs
- TextEditorContextMenu.cs
- RegisteredScript.cs
- GridViewColumnHeader.cs
- HttpFileCollection.cs
- CustomAttributeFormatException.cs
- PrintDocument.cs
- WebConfigurationHost.cs
- ByteKeyFrameCollection.cs
- ResourceManagerWrapper.cs
- DesignerCatalogPartChrome.cs
- MenuItemStyle.cs
- TraceUtility.cs
- BlurEffect.cs
- _ScatterGatherBuffers.cs