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
- ExplicitDiscriminatorMap.cs
- SignatureDescription.cs
- PreProcessInputEventArgs.cs
- ActivityTypeDesigner.xaml.cs
- LinearQuaternionKeyFrame.cs
- BitStack.cs
- PropertyGroupDescription.cs
- ParserStreamGeometryContext.cs
- CommandDevice.cs
- ImpersonationContext.cs
- MobileCategoryAttribute.cs
- EllipticalNodeOperations.cs
- ItemMap.cs
- RowToFieldTransformer.cs
- ColorTranslator.cs
- ImageAutomationPeer.cs
- InternalResources.cs
- X509Certificate2Collection.cs
- ItemCheckEvent.cs
- DependencyObject.cs
- ContentPresenter.cs
- SQLDecimalStorage.cs
- ProviderConnectionPointCollection.cs
- GenericAuthenticationEventArgs.cs
- LogSwitch.cs
- QuadraticBezierSegment.cs
- ValueType.cs
- GatewayDefinition.cs
- DataSourceProvider.cs
- MatchingStyle.cs
- ClientFormsAuthenticationCredentials.cs
- TextServicesDisplayAttribute.cs
- RequestQueue.cs
- SemaphoreSecurity.cs
- TimelineGroup.cs
- FastEncoderWindow.cs
- FilterEventArgs.cs
- LoginName.cs
- RSAOAEPKeyExchangeFormatter.cs
- QueryableFilterRepeater.cs
- RemoteWebConfigurationHostServer.cs
- StylusLogic.cs
- Crypto.cs
- TextEffect.cs
- FormatPage.cs
- CompareValidator.cs
- ConstructorBuilder.cs
- XmlSignatureProperties.cs
- SrgsGrammar.cs
- MessageBox.cs
- WorkflowApplicationTerminatedException.cs
- XmlDownloadManager.cs
- FilteredAttributeCollection.cs
- DecimalAnimation.cs
- BamlTreeNode.cs
- UnSafeCharBuffer.cs
- SizeAnimationUsingKeyFrames.cs
- Or.cs
- StaticDataManager.cs
- XmlDataSourceView.cs
- TableItemPatternIdentifiers.cs
- ListControlBuilder.cs
- UnsafeNativeMethods.cs
- SspiHelper.cs
- ContractCodeDomInfo.cs
- ExpressionVisitorHelpers.cs
- SmtpLoginAuthenticationModule.cs
- XmlArrayAttribute.cs
- RootBrowserWindow.cs
- TdsParserStaticMethods.cs
- DataServiceClientException.cs
- KeyPressEvent.cs
- PenThread.cs
- SmtpCommands.cs
- DataBoundControlAdapter.cs
- ArraySubsetEnumerator.cs
- SafeProcessHandle.cs
- QueryAccessibilityHelpEvent.cs
- Transform.cs
- StatusBarAutomationPeer.cs
- HtmlShim.cs
- IndependentlyAnimatedPropertyMetadata.cs
- ManagementObject.cs
- EmptyReadOnlyDictionaryInternal.cs
- ValidateNames.cs
- VBCodeProvider.cs
- DeclaredTypeValidatorAttribute.cs
- odbcmetadatacollectionnames.cs
- Tracer.cs
- XmlValidatingReaderImpl.cs
- TaskHelper.cs
- Wildcard.cs
- OneWayChannelListener.cs
- DateTimeValueSerializer.cs
- DbProviderFactories.cs
- InstanceCollisionException.cs
- NameValueConfigurationElement.cs
- TypeBuilderInstantiation.cs
- CanExecuteRoutedEventArgs.cs
- DirectoryNotFoundException.cs