Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- TextEncodedRawTextWriter.cs
- GlobalDataBindingHandler.cs
- DbMetaDataFactory.cs
- TextDocumentView.cs
- StorageFunctionMapping.cs
- ZipIOLocalFileBlock.cs
- ManipulationVelocities.cs
- WindowsComboBox.cs
- PropertyEmitter.cs
- Model3DGroup.cs
- ParallelEnumerableWrapper.cs
- NestPullup.cs
- SoapServerMessage.cs
- DataControlButton.cs
- GeneralTransformGroup.cs
- HtmlSelect.cs
- WebSysDescriptionAttribute.cs
- PassportAuthentication.cs
- ExpressionVisitor.cs
- BuildProvider.cs
- SendingRequestEventArgs.cs
- GlobalizationAssembly.cs
- CompareInfo.cs
- SendReply.cs
- CryptoHandle.cs
- AutomationPropertyChangedEventArgs.cs
- BamlResourceSerializer.cs
- BindingCompleteEventArgs.cs
- relpropertyhelper.cs
- TimeSpanParse.cs
- SqlFormatter.cs
- FindRequestContext.cs
- Rotation3DAnimationBase.cs
- EventRecordWrittenEventArgs.cs
- OdbcConnectionOpen.cs
- BitmapEffectGroup.cs
- GeneralTransform2DTo3DTo2D.cs
- DecodeHelper.cs
- ComplexPropertyEntry.cs
- SAPIEngineTypes.cs
- Cursor.cs
- AsyncOperationLifetimeManager.cs
- AuthorizationSection.cs
- ClientFormsAuthenticationMembershipProvider.cs
- UInt32.cs
- ReadOnlyCollectionBase.cs
- ScalarConstant.cs
- DoubleLinkListEnumerator.cs
- RepeaterDesigner.cs
- SerializerProvider.cs
- XmlAttributeOverrides.cs
- ToolBarButtonClickEvent.cs
- ColumnMapProcessor.cs
- PreProcessInputEventArgs.cs
- FloaterBaseParagraph.cs
- SiteMapDataSourceDesigner.cs
- ResolveInfo.cs
- RequestBringIntoViewEventArgs.cs
- AffineTransform3D.cs
- CollectionChangeEventArgs.cs
- SqlVisitor.cs
- FixedDocument.cs
- TransactionContextValidator.cs
- ProfileEventArgs.cs
- TextServicesDisplayAttribute.cs
- RootBuilder.cs
- InstancePersistenceContext.cs
- CompiledXpathExpr.cs
- AttachInfo.cs
- ExpressionList.cs
- FrameAutomationPeer.cs
- FormatterServicesNoSerializableCheck.cs
- PathGeometry.cs
- SingleBodyParameterMessageFormatter.cs
- _DomainName.cs
- ExceptionRoutedEventArgs.cs
- InputLanguageProfileNotifySink.cs
- ComplexPropertyEntry.cs
- WebConfigurationHost.cs
- DoWorkEventArgs.cs
- HttpFormatExtensions.cs
- KnownBoxes.cs
- ClientReliableChannelBinder.cs
- AssociationType.cs
- ResourceDescriptionAttribute.cs
- CatalogPartCollection.cs
- ImmutableObjectAttribute.cs
- __Filters.cs
- _SSPISessionCache.cs
- ControlBuilderAttribute.cs
- StorageAssociationTypeMapping.cs
- OutOfProcStateClientManager.cs
- CryptoApi.cs
- NativeMethods.cs
- WaitHandle.cs
- SettingsPropertyValue.cs
- Point.cs
- RadioButton.cs
- QueryPageSettingsEventArgs.cs
- DoubleAnimationClockResource.cs