Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HttpListenerRequest.cs
- ManifestResourceInfo.cs
- DesignTimeParseData.cs
- MoveSizeWinEventHandler.cs
- PropertyTabAttribute.cs
- ArrayTypeMismatchException.cs
- PhysicalAddress.cs
- XDRSchema.cs
- ToolboxControl.cs
- SrgsSemanticInterpretationTag.cs
- HttpProfileBase.cs
- Slider.cs
- Point3DAnimation.cs
- MetadataArtifactLoaderComposite.cs
- precedingquery.cs
- OdbcUtils.cs
- ReadOnlyDictionary.cs
- FileDialogCustomPlacesCollection.cs
- RightsController.cs
- DataGridViewMethods.cs
- EntityException.cs
- SecurityContextTokenValidationException.cs
- ClientTargetCollection.cs
- Pool.cs
- ModelVisual3D.cs
- JoinSymbol.cs
- AvTraceFormat.cs
- WindowsRichEdit.cs
- DataGridViewHeaderCell.cs
- ToolStripPanel.cs
- WCFBuildProvider.cs
- PointAnimation.cs
- ObjectListDataBindEventArgs.cs
- XmlSchemaProviderAttribute.cs
- ActivityInstanceMap.cs
- CultureInfoConverter.cs
- ErrorHandler.cs
- GenericAuthenticationEventArgs.cs
- DataGridViewSelectedCellCollection.cs
- PrintPreviewControl.cs
- CompModHelpers.cs
- StopRoutingHandler.cs
- FieldNameLookup.cs
- SerializableAttribute.cs
- WorkflowDesigner.cs
- CodeSpit.cs
- WebSysDescriptionAttribute.cs
- EnlistmentState.cs
- Control.cs
- IdentityNotMappedException.cs
- ReceiveSecurityHeader.cs
- WindowsSlider.cs
- ErrorHandler.cs
- CustomActivityDesigner.cs
- AspNetHostingPermission.cs
- EqualityComparer.cs
- DelimitedListTraceListener.cs
- Point.cs
- ContractInstanceProvider.cs
- SafeCryptoHandles.cs
- XmlDigitalSignatureProcessor.cs
- XsdValidatingReader.cs
- RangeBase.cs
- TextBoxAutoCompleteSourceConverter.cs
- UmAlQuraCalendar.cs
- ScriptMethodAttribute.cs
- NullableDoubleSumAggregationOperator.cs
- FrameworkContextData.cs
- GZipDecoder.cs
- OperationPickerDialog.designer.cs
- WindowsAuthenticationEventArgs.cs
- StoreContentChangedEventArgs.cs
- WebConfigurationFileMap.cs
- QueryCursorEventArgs.cs
- ComponentResourceKeyConverter.cs
- GeometryValueSerializer.cs
- TableNameAttribute.cs
- X509CertificateStore.cs
- EraserBehavior.cs
- HitTestResult.cs
- mda.cs
- XPathNavigatorKeyComparer.cs
- SpellerHighlightLayer.cs
- StartFileNameEditor.cs
- DbConnectionClosed.cs
- XmlArrayItemAttribute.cs
- ExpressionCopier.cs
- CellTreeNodeVisitors.cs
- RectAnimationBase.cs
- CollectionChangedEventManager.cs
- BufferedGraphicsContext.cs
- DeadLetterQueue.cs
- DynamicValidator.cs
- ObjectItemCollection.cs
- ExpressionVisitor.cs
- RestClientProxyHandler.cs
- DataControlFieldTypeEditor.cs
- DesignerTextWriter.cs
- PagesChangedEventArgs.cs
- ResourceAttributes.cs