Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / DataEntity / System / Data / EntityModel / SchemaObjectModel / FunctionCommandText.cs / 1 / FunctionCommandText.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 CommandText element. /// internal sealed class FunctionCommandText : SchemaElement { private string _commandText; ////// Constructs an FunctionCommandText /// /// Reference to the schema element. public FunctionCommandText(Function parentElement) : base(parentElement) { } public string CommandText { get { return _commandText; } } protected override bool HandleText(XmlReader reader) { _commandText = reader.Value; return true; } internal override void Validate() { base.Validate(); if (String.IsNullOrEmpty(_commandText)) { AddError(ErrorCode.EmptyCommandText, EdmSchemaErrorSeverity.Error, System.Data.Entity.Strings.EmptyCommandText); } } } } // 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 CommandText element. /// internal sealed class FunctionCommandText : SchemaElement { private string _commandText; ////// Constructs an FunctionCommandText /// /// Reference to the schema element. public FunctionCommandText(Function parentElement) : base(parentElement) { } public string CommandText { get { return _commandText; } } protected override bool HandleText(XmlReader reader) { _commandText = reader.Value; return true; } internal override void Validate() { base.Validate(); if (String.IsNullOrEmpty(_commandText)) { AddError(ErrorCode.EmptyCommandText, EdmSchemaErrorSeverity.Error, System.Data.Entity.Strings.EmptyCommandText); } } } } // 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
- DBConnection.cs
- WindowsButton.cs
- EntityDesignerUtils.cs
- MsmqVerifier.cs
- ExternalDataExchangeClient.cs
- FrameworkPropertyMetadata.cs
- FontSourceCollection.cs
- Matrix3DConverter.cs
- ObjectCloneHelper.cs
- AliasExpr.cs
- InternalControlCollection.cs
- EditingCommands.cs
- URLIdentityPermission.cs
- GridViewSelectEventArgs.cs
- EntityContainer.cs
- TripleDESCryptoServiceProvider.cs
- CompiledRegexRunnerFactory.cs
- AstTree.cs
- ScrollViewerAutomationPeer.cs
- FixedLineResult.cs
- AccessKeyManager.cs
- DataSourceGeneratorException.cs
- BitmapCacheBrush.cs
- ValueProviderWrapper.cs
- MetabaseServerConfig.cs
- ipaddressinformationcollection.cs
- StackSpiller.Temps.cs
- SecurityElement.cs
- XmlElement.cs
- PointConverter.cs
- TextElementCollection.cs
- FilterUserControlBase.cs
- DetailsViewRow.cs
- PauseStoryboard.cs
- SvcMapFile.cs
- SourceFileBuildProvider.cs
- NullableDoubleAverageAggregationOperator.cs
- OverrideMode.cs
- Int16AnimationUsingKeyFrames.cs
- TextServicesDisplayAttribute.cs
- BrowsableAttribute.cs
- PerfService.cs
- TextRangeProviderWrapper.cs
- EdmTypeAttribute.cs
- BamlResourceSerializer.cs
- ReadWriteSpinLock.cs
- XmlSchemaException.cs
- DefinitionUpdate.cs
- Application.cs
- WebPartPersonalization.cs
- Directory.cs
- UnauthorizedAccessException.cs
- Comparer.cs
- LocatorPart.cs
- CheckBoxField.cs
- AccessDataSourceView.cs
- AgileSafeNativeMemoryHandle.cs
- MatrixIndependentAnimationStorage.cs
- NegotiationTokenAuthenticator.cs
- GCHandleCookieTable.cs
- UriSection.cs
- JsonServiceDocumentSerializer.cs
- Popup.cs
- DetailsViewDeletedEventArgs.cs
- XmlQueryStaticData.cs
- InvalidChannelBindingException.cs
- XsdDateTime.cs
- BasicHttpSecurityElement.cs
- ScrollContentPresenter.cs
- RectAnimationUsingKeyFrames.cs
- SafeNativeMethodsOther.cs
- TextDecorationCollection.cs
- AuthenticationServiceManager.cs
- DataGridCommandEventArgs.cs
- HuffmanTree.cs
- ListViewInsertionMark.cs
- SqlFormatter.cs
- ContourSegment.cs
- ValidationSummary.cs
- RawStylusInputCustomData.cs
- BuildResultCache.cs
- wgx_exports.cs
- SafeCryptContextHandle.cs
- GiveFeedbackEventArgs.cs
- FragmentNavigationEventArgs.cs
- EventLogEntry.cs
- IndexedGlyphRun.cs
- CookieProtection.cs
- JsonCollectionDataContract.cs
- UrlAuthFailedErrorFormatter.cs
- XPathAncestorQuery.cs
- Action.cs
- DesignerWidgets.cs
- CommonGetThemePartSize.cs
- ScriptControlDescriptor.cs
- DataGridItemAutomationPeer.cs
- ConsoleTraceListener.cs
- AnimationStorage.cs
- ExtensionFile.cs
- RawStylusInputCustomData.cs