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
- XmlILConstructAnalyzer.cs
- PropertyMapper.cs
- MimeTypePropertyAttribute.cs
- XamlClipboardData.cs
- URLAttribute.cs
- UTF8Encoding.cs
- COM2PropertyDescriptor.cs
- CounterCreationData.cs
- EllipseGeometry.cs
- CannotUnloadAppDomainException.cs
- ApplicationDirectory.cs
- InkCanvasInnerCanvas.cs
- OdbcUtils.cs
- TypeNameConverter.cs
- ConsoleTraceListener.cs
- ILGen.cs
- DictionaryContent.cs
- SolidColorBrush.cs
- ToolStripMenuItemDesigner.cs
- PersistenceProvider.cs
- RuntimeHelpers.cs
- SqlConnectionManager.cs
- DataGridClipboardCellContent.cs
- MobileControlPersister.cs
- Transform3D.cs
- TraceShell.cs
- XmlLoader.cs
- CompressionTracing.cs
- DataSourceSelectArguments.cs
- SpeechSeg.cs
- RuntimeWrappedException.cs
- Point3DIndependentAnimationStorage.cs
- AttributeInfo.cs
- CompositeKey.cs
- ScrollItemProviderWrapper.cs
- Permission.cs
- WebPartCloseVerb.cs
- EventLogPermissionEntry.cs
- RuntimeEnvironment.cs
- MessageAction.cs
- XmlNamespaceDeclarationsAttribute.cs
- XmlUtil.cs
- RequestNavigateEventArgs.cs
- CmsUtils.cs
- TransactionProtocol.cs
- SoapFault.cs
- ScalarRestriction.cs
- XappLauncher.cs
- TypeRestriction.cs
- BinaryCommonClasses.cs
- SQLSingle.cs
- HandledEventArgs.cs
- Accessors.cs
- PasswordTextContainer.cs
- PageCodeDomTreeGenerator.cs
- LinkClickEvent.cs
- _NetworkingPerfCounters.cs
- OverlappedAsyncResult.cs
- AdornerPresentationContext.cs
- Tile.cs
- GeneralTransform3DCollection.cs
- SecurityTokenAuthenticator.cs
- TextServicesLoader.cs
- EventProviderWriter.cs
- WebBrowserEvent.cs
- SQLInt32.cs
- ObjectStateFormatter.cs
- DataBoundControl.cs
- SignedPkcs7.cs
- FlowDocumentFormatter.cs
- MenuBase.cs
- HttpHandlerActionCollection.cs
- DropSourceBehavior.cs
- EpmSyndicationContentSerializer.cs
- LZCodec.cs
- Console.cs
- ApplyTemplatesAction.cs
- HelpKeywordAttribute.cs
- InvocationExpression.cs
- IERequestCache.cs
- Light.cs
- GroupItem.cs
- LocationFactory.cs
- XmlSchemaGroup.cs
- BamlTreeNode.cs
- DetailsViewInsertedEventArgs.cs
- System.Data.OracleClient_BID.cs
- TreeNodeClickEventArgs.cs
- ColorMap.cs
- Light.cs
- WpfKnownTypeInvoker.cs
- SharedPerformanceCounter.cs
- CounterCreationData.cs
- TreeBuilderBamlTranslator.cs
- DbConnectionInternal.cs
- DocumentXPathNavigator.cs
- Property.cs
- IncrementalHitTester.cs
- Mutex.cs
- DataBoundControlHelper.cs