Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- EntityDataSourceState.cs
- dataobject.cs
- DiscoveryReferences.cs
- MimeTypePropertyAttribute.cs
- FixedSOMImage.cs
- BinaryMessageFormatter.cs
- HwndHost.cs
- BaseTreeIterator.cs
- ObjectStateFormatter.cs
- MouseGestureValueSerializer.cs
- ResolveCriteriaApril2005.cs
- FormsAuthentication.cs
- BadImageFormatException.cs
- Hex.cs
- CompositeDataBoundControl.cs
- FusionWrap.cs
- RecordsAffectedEventArgs.cs
- CopyOfAction.cs
- CountAggregationOperator.cs
- DuplexChannelFactory.cs
- HttpFileCollection.cs
- Metafile.cs
- autovalidator.cs
- FilteredDataSetHelper.cs
- XmlSchemaCollection.cs
- CommandCollectionEditor.cs
- PrintingPermissionAttribute.cs
- SessionPageStateSection.cs
- Calendar.cs
- HttpCapabilitiesSectionHandler.cs
- LocatorBase.cs
- LogStream.cs
- SerializationInfo.cs
- Int64.cs
- ControlParameter.cs
- BaseDataListDesigner.cs
- SoapAttributes.cs
- MetadataItem_Static.cs
- MessageFilterException.cs
- StubHelpers.cs
- ComContractElementCollection.cs
- PackageRelationshipCollection.cs
- HttpRawResponse.cs
- HttpResponse.cs
- ViewCellRelation.cs
- AutoGeneratedFieldProperties.cs
- Separator.cs
- UserControl.cs
- TextEditorLists.cs
- DataSourceXmlSerializer.cs
- SelectManyQueryOperator.cs
- InstalledFontCollection.cs
- SafeHGlobalHandleCritical.cs
- CompareInfo.cs
- VisualBrush.cs
- LoginName.cs
- XmlElementList.cs
- PartialToken.cs
- TextTreeObjectNode.cs
- HttpCacheVary.cs
- WsatServiceAddress.cs
- VarRefManager.cs
- DataSet.cs
- selecteditemcollection.cs
- IfAction.cs
- KeyValueConfigurationElement.cs
- Char.cs
- Scene3D.cs
- SmtpMail.cs
- UpdatableGenericsFeature.cs
- RegexCompilationInfo.cs
- HttpCacheVaryByContentEncodings.cs
- OracleParameterBinding.cs
- ComPlusTraceRecord.cs
- RemoteCryptoSignHashRequest.cs
- Rule.cs
- SqlConnectionPoolGroupProviderInfo.cs
- PropertyPathWorker.cs
- FrameworkEventSource.cs
- SimpleWorkerRequest.cs
- HideDisabledControlAdapter.cs
- HMAC.cs
- Decorator.cs
- FormattedText.cs
- Serializer.cs
- ResourceContainer.cs
- EnumValidator.cs
- AdapterDictionary.cs
- PresentationAppDomainManager.cs
- Utils.cs
- WinInet.cs
- DataChangedEventManager.cs
- TraceSection.cs
- CreateBookmarkScope.cs
- WinInet.cs
- ButtonChrome.cs
- ObjectIDGenerator.cs
- EmptyQuery.cs
- SpecialNameAttribute.cs
- NavigationEventArgs.cs