Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataEntity / System / Data / EntityModel / SchemaObjectModel / EntityContainerEntitySetDefiningQuery.cs / 2 / 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
- DataControlCommands.cs
- _Semaphore.cs
- ListViewItemSelectionChangedEvent.cs
- CreationContext.cs
- FileDialog_Vista.cs
- InputScope.cs
- ISAPIApplicationHost.cs
- DataGridItem.cs
- Part.cs
- DataColumnCollection.cs
- ButtonField.cs
- remotingproxy.cs
- ToolStripPanelRenderEventArgs.cs
- PopupControlService.cs
- CounterCreationDataCollection.cs
- basevalidator.cs
- PlatformCulture.cs
- SecurityContext.cs
- SqlFactory.cs
- StylusButton.cs
- DiagnosticTraceSource.cs
- WinEventWrap.cs
- DurableInstancingOptions.cs
- TextDpi.cs
- ShaperBuffers.cs
- validationstate.cs
- OpenTypeLayoutCache.cs
- CatalogPart.cs
- AnimationException.cs
- AuthenticationService.cs
- parserscommon.cs
- ArgumentFixer.cs
- DataTableTypeConverter.cs
- TableLayoutPanelBehavior.cs
- ItemType.cs
- OverflowException.cs
- ExpressionEditor.cs
- DataGridParentRows.cs
- Span.cs
- FileResponseElement.cs
- ServiceDesigner.cs
- GPStream.cs
- DiagnosticTraceSource.cs
- TripleDES.cs
- MetadataSerializer.cs
- DataContractSerializerMessageContractImporter.cs
- Argument.cs
- ToolStripGripRenderEventArgs.cs
- SpecularMaterial.cs
- XmlReader.cs
- ConvertTextFrag.cs
- RSAPKCS1SignatureFormatter.cs
- SoapReflectionImporter.cs
- RowVisual.cs
- SqlDeflator.cs
- Point3D.cs
- XmlParser.cs
- HostProtectionException.cs
- ISFTagAndGuidCache.cs
- _HeaderInfo.cs
- HtmlHistory.cs
- CuspData.cs
- WaitHandle.cs
- ProcessHostConfigUtils.cs
- RadioButton.cs
- IndicCharClassifier.cs
- Stylesheet.cs
- TypeConverterHelper.cs
- EventManager.cs
- NativeActivity.cs
- ColorKeyFrameCollection.cs
- XmlWriterSettings.cs
- TdsParserStateObject.cs
- OraclePermission.cs
- DataGridViewCheckBoxColumn.cs
- BuildProviderCollection.cs
- DataSetSchema.cs
- ScaleTransform3D.cs
- WhereaboutsReader.cs
- InvalidCommandTreeException.cs
- FragmentNavigationEventArgs.cs
- Line.cs
- ListViewDeleteEventArgs.cs
- HierarchicalDataSourceControl.cs
- XComponentModel.cs
- HandlerWithFactory.cs
- CultureData.cs
- ViewService.cs
- FullTextLine.cs
- HttpBrowserCapabilitiesBase.cs
- CancelAsyncOperationRequest.cs
- ServiceDebugElement.cs
- ReferenceSchema.cs
- LookupNode.cs
- Literal.cs
- SafeRightsManagementQueryHandle.cs
- WebHttpSecurityElement.cs
- SelectionGlyph.cs
- DownloadProgressEventArgs.cs
- WebPartsPersonalization.cs