Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ErrorFormatterPage.cs
- InvalidComObjectException.cs
- ReadOnlyDataSource.cs
- MessagePartDescription.cs
- objectquery_tresulttype.cs
- OleDbConnection.cs
- FixedTextContainer.cs
- MimeFormatter.cs
- DoubleAnimationBase.cs
- Message.cs
- QilTargetType.cs
- AudioDeviceOut.cs
- XmlSubtreeReader.cs
- Button.cs
- FormViewUpdateEventArgs.cs
- BrushConverter.cs
- BufferAllocator.cs
- QueryException.cs
- SecurityKeyIdentifierClause.cs
- BaseAutoFormat.cs
- SEHException.cs
- ResourceContainer.cs
- TextSpanModifier.cs
- ConfigurationValue.cs
- ToggleProviderWrapper.cs
- XmlDataImplementation.cs
- AspNetSynchronizationContext.cs
- xml.cs
- StructuredTypeInfo.cs
- RenamedEventArgs.cs
- EventLog.cs
- DateTimeUtil.cs
- CompositeCollectionView.cs
- PropertyBuilder.cs
- LinkUtilities.cs
- GenericAuthenticationEventArgs.cs
- WebUtil.cs
- DBSqlParserColumnCollection.cs
- XmlReflectionImporter.cs
- SizeChangedInfo.cs
- ValidationSummary.cs
- XmlNodeList.cs
- infer.cs
- TextMetrics.cs
- TextBoxRenderer.cs
- FormClosedEvent.cs
- OutputScope.cs
- MorphHelper.cs
- SemanticValue.cs
- HttpException.cs
- WebBrowserContainer.cs
- DiagnosticsConfiguration.cs
- IdnMapping.cs
- MasterPageBuildProvider.cs
- EncoderParameter.cs
- XmlSecureResolver.cs
- EntryPointNotFoundException.cs
- SerializableReadOnlyDictionary.cs
- AdornerDecorator.cs
- LogExtentCollection.cs
- EpmContentSerializer.cs
- BamlLocalizer.cs
- RadioButtonDesigner.cs
- AsyncDataRequest.cs
- SoapIgnoreAttribute.cs
- ExpressionBuilderCollection.cs
- SQLChars.cs
- DbSourceCommand.cs
- Encoding.cs
- Console.cs
- FixedTextContainer.cs
- DbConnectionPool.cs
- ProxyElement.cs
- ResourceProviderFactory.cs
- tooltip.cs
- FactoryGenerator.cs
- EventEntry.cs
- RegexCharClass.cs
- XmlBufferReader.cs
- TreeNodeStyleCollection.cs
- CodeRegionDirective.cs
- ArraySubsetEnumerator.cs
- Control.cs
- UnicodeEncoding.cs
- TreeNodeCollection.cs
- ReferenceService.cs
- UpdateRecord.cs
- TreeWalker.cs
- HtmlTableRow.cs
- ZipPackagePart.cs
- ReadOnlyMetadataCollection.cs
- DefaultExpression.cs
- ChangeDirector.cs
- HelpEvent.cs
- NetStream.cs
- WindowVisualStateTracker.cs
- ElementProxy.cs
- GlyphElement.cs
- PageCodeDomTreeGenerator.cs
- MetadataCache.cs