Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / EntityModel / SchemaObjectModel / EntityContainerEntitySetDefiningQuery.cs / 1305376 / EntityContainerEntitySetDefiningQuery.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Diagnostics; using System.Xml; using System.Data; using System.Data.Metadata.Edm; namespace System.Data.EntityModel.SchemaObjectModel { ////// Represents an DefiningQuery element. /// internal sealed class EntityContainerEntitySetDefiningQuery : SchemaElement { private string _query; ////// Constructs an EntityContainerEntitySet /// /// Reference to the schema element. public EntityContainerEntitySetDefiningQuery(EntityContainerEntitySet parentElement) : base( parentElement ) { } public string Query { get { return _query; } } protected override bool HandleText(XmlReader reader) { _query = reader.Value; return true; } internal override void Validate() { base.Validate(); if(String.IsNullOrEmpty(_query)) { AddError(ErrorCode.EmptyDefiningQuery, EdmSchemaErrorSeverity.Error, System.Data.Entity.Strings.EmptyDefiningQuery); } } } } // 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; using System.Collections.Generic; using System.Collections.Specialized; using System.Diagnostics; using System.Xml; using System.Data; using System.Data.Metadata.Edm; namespace System.Data.EntityModel.SchemaObjectModel { ////// Represents an DefiningQuery element. /// internal sealed class EntityContainerEntitySetDefiningQuery : SchemaElement { private string _query; ////// Constructs an EntityContainerEntitySet /// /// Reference to the schema element. public EntityContainerEntitySetDefiningQuery(EntityContainerEntitySet parentElement) : base( parentElement ) { } public string Query { get { return _query; } } protected override bool HandleText(XmlReader reader) { _query = reader.Value; return true; } internal override void Validate() { base.Validate(); if(String.IsNullOrEmpty(_query)) { AddError(ErrorCode.EmptyDefiningQuery, EdmSchemaErrorSeverity.Error, System.Data.Entity.Strings.EmptyDefiningQuery); } } } } // 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
- ImageMapEventArgs.cs
- SystemSounds.cs
- DnsPermission.cs
- autovalidator.cs
- ValidatingPropertiesEventArgs.cs
- ReadOnlyPropertyMetadata.cs
- ColumnBinding.cs
- DebugController.cs
- httpserverutility.cs
- DataGridViewColumnHeaderCell.cs
- SecurityPermission.cs
- AspCompat.cs
- MoveSizeWinEventHandler.cs
- XmlAnyElementAttributes.cs
- ISAPIRuntime.cs
- DataGridHeaderBorder.cs
- SimpleHandlerFactory.cs
- URLMembershipCondition.cs
- BindingGroup.cs
- ObjectParameter.cs
- QueryResult.cs
- ChannelSinkStacks.cs
- ParameterCollection.cs
- GridViewDeleteEventArgs.cs
- UInt64Converter.cs
- DataGridViewCellConverter.cs
- SafeFileMapViewHandle.cs
- Separator.cs
- RelationalExpressions.cs
- ToolStripScrollButton.cs
- Environment.cs
- SimpleType.cs
- TypeConverterHelper.cs
- SqlTypeConverter.cs
- SupportingTokenSecurityTokenResolver.cs
- AsyncDataRequest.cs
- XamlStyleSerializer.cs
- NumberFunctions.cs
- ButtonBase.cs
- DetailsView.cs
- ISCIIEncoding.cs
- PropertyFilter.cs
- XmlWriter.cs
- RuntimeConfig.cs
- CodeSnippetExpression.cs
- VerticalAlignConverter.cs
- OperationGenerator.cs
- SqlDataSource.cs
- WithParamAction.cs
- HtmlInputSubmit.cs
- AutomationElement.cs
- BevelBitmapEffect.cs
- TraceSection.cs
- TypeUtil.cs
- UtilityExtension.cs
- InternalConfigHost.cs
- RoutedPropertyChangedEventArgs.cs
- NodeInfo.cs
- OleDbWrapper.cs
- DomainConstraint.cs
- PointCollectionConverter.cs
- AttachmentService.cs
- IconBitmapDecoder.cs
- UserValidatedEventArgs.cs
- PersonalizationProviderCollection.cs
- ComboBox.cs
- panel.cs
- DrawingImage.cs
- DataServiceKeyAttribute.cs
- NCryptNative.cs
- SamlAttribute.cs
- Zone.cs
- ParserExtension.cs
- AsymmetricAlgorithm.cs
- Crypto.cs
- StreamHelper.cs
- DataSourceIDConverter.cs
- SafeArchiveContext.cs
- SrgsSubset.cs
- InputLanguageProfileNotifySink.cs
- RelatedView.cs
- WebPartDisplayMode.cs
- EnumBuilder.cs
- SafeTokenHandle.cs
- NavigationWindowAutomationPeer.cs
- PolicyLevel.cs
- HtmlControlDesigner.cs
- SynchronousChannel.cs
- BidPrivateBase.cs
- oledbmetadatacollectionnames.cs
- TransactionalPackage.cs
- PartitionResolver.cs
- NetDispatcherFaultException.cs
- EntityConnectionStringBuilder.cs
- StringHelper.cs
- OdbcRowUpdatingEvent.cs
- EmptyQuery.cs
- FontUnitConverter.cs
- FontWeights.cs
- WebBrowserEvent.cs