Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / EntityModel / SchemaObjectModel / FunctionCommandText.cs / 1305376 / 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
- SmtpException.cs
- HyperLinkField.cs
- FormatterServicesNoSerializableCheck.cs
- TokenBasedSetEnumerator.cs
- ThreadInterruptedException.cs
- CheckBoxAutomationPeer.cs
- SQLByte.cs
- StateManagedCollection.cs
- LogEntryHeaderDeserializer.cs
- SchemaEntity.cs
- QuaternionIndependentAnimationStorage.cs
- BitmapEffectDrawing.cs
- LocalizationParserHooks.cs
- ClientUrlResolverWrapper.cs
- XmlSubtreeReader.cs
- IncomingWebResponseContext.cs
- CredentialCache.cs
- TypefaceMetricsCache.cs
- DocumentPage.cs
- RC2.cs
- SocketAddress.cs
- CommandLibraryHelper.cs
- Volatile.cs
- ToolStripOverflowButton.cs
- PassportPrincipal.cs
- DefaultValueConverter.cs
- Psha1DerivedKeyGenerator.cs
- SrgsOneOf.cs
- ResourcesBuildProvider.cs
- Unit.cs
- WindowsAuthenticationModule.cs
- AuthenticodeSignatureInformation.cs
- TextViewBase.cs
- AccessViolationException.cs
- RegisteredScript.cs
- OdbcConnection.cs
- DockPatternIdentifiers.cs
- TypeHelper.cs
- compensatingcollection.cs
- XmlName.cs
- InlinedLocationReference.cs
- GeometryHitTestParameters.cs
- PropertyReferenceSerializer.cs
- NavigationPropertySingletonExpression.cs
- NetDataContractSerializer.cs
- DataControlExtensions.cs
- SafeNativeMethodsOther.cs
- ExceptionHelpers.cs
- SQLMoneyStorage.cs
- basecomparevalidator.cs
- BitmapImage.cs
- ContextItemManager.cs
- AVElementHelper.cs
- LinqDataSource.cs
- MergablePropertyAttribute.cs
- MetadataFile.cs
- SecurityUtils.cs
- ExceptionUtil.cs
- ViewGenResults.cs
- FactoryRecord.cs
- CqlWriter.cs
- FormsAuthenticationModule.cs
- FixedSOMContainer.cs
- designeractionlistschangedeventargs.cs
- LogicalExpr.cs
- FuncCompletionCallbackWrapper.cs
- TransformCollection.cs
- HwndSourceKeyboardInputSite.cs
- XamlGridLengthSerializer.cs
- Slider.cs
- CodeRegionDirective.cs
- WithStatement.cs
- BaseComponentEditor.cs
- TextClipboardData.cs
- AuthenticatingEventArgs.cs
- InvokeHandlers.cs
- SqlDataSourceQuery.cs
- ScriptRef.cs
- x509store.cs
- ResourceReferenceExpressionConverter.cs
- MatcherBuilder.cs
- DBCSCodePageEncoding.cs
- ListView.cs
- ObjectStateFormatter.cs
- ProcessHost.cs
- WindowsAuthenticationEventArgs.cs
- RegexGroupCollection.cs
- WebPartMovingEventArgs.cs
- SoapSchemaExporter.cs
- FixedSOMPageElement.cs
- SiteMapPath.cs
- XmlUnspecifiedAttribute.cs
- WebErrorHandler.cs
- Formatter.cs
- ShaderRenderModeValidation.cs
- Simplifier.cs
- BufferBuilder.cs
- ItemCollection.cs
- MultiBindingExpression.cs
- ListBindingHelper.cs