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
- ReliableSessionBindingElementImporter.cs
- SHA1CryptoServiceProvider.cs
- ItemsChangedEventArgs.cs
- AccessText.cs
- XmlNamespaceManager.cs
- CodeTryCatchFinallyStatement.cs
- DbQueryCommandTree.cs
- StrokeFIndices.cs
- CompareInfo.cs
- AttachmentService.cs
- XsltCompileContext.cs
- KerberosTokenFactoryCredential.cs
- AbandonedMutexException.cs
- BuilderInfo.cs
- EasingFunctionBase.cs
- HoistedLocals.cs
- WebContext.cs
- GacUtil.cs
- OdbcReferenceCollection.cs
- GeneralTransform3DTo2D.cs
- NumberSubstitution.cs
- BrowserInteropHelper.cs
- RepeatBehaviorConverter.cs
- XmlHierarchicalEnumerable.cs
- Selection.cs
- BitStream.cs
- FormViewInsertedEventArgs.cs
- ISCIIEncoding.cs
- KnownBoxes.cs
- TypeInfo.cs
- _NestedSingleAsyncResult.cs
- DesignerUtility.cs
- RefType.cs
- ProjectedWrapper.cs
- QilReference.cs
- SelectionRange.cs
- TypeSource.cs
- EdmProviderManifest.cs
- BuilderInfo.cs
- TextTreeNode.cs
- CircleHotSpot.cs
- ObfuscationAttribute.cs
- MultipleViewPattern.cs
- LogSwitch.cs
- HtmlEmptyTagControlBuilder.cs
- WebPartHeaderCloseVerb.cs
- InfoCardKeyedHashAlgorithm.cs
- TableLayoutCellPaintEventArgs.cs
- MembershipPasswordException.cs
- XmlCharCheckingWriter.cs
- CannotUnloadAppDomainException.cs
- HtmlInputFile.cs
- SocketException.cs
- Range.cs
- ViewCellSlot.cs
- QueryStatement.cs
- TemplatePartAttribute.cs
- Catch.cs
- EntitySqlQueryState.cs
- ClientConvert.cs
- PositiveTimeSpanValidatorAttribute.cs
- ExtensionCollection.cs
- TraceInternal.cs
- LinkedResourceCollection.cs
- ReachDocumentReferenceCollectionSerializerAsync.cs
- WSAddressing10ProblemHeaderQNameFault.cs
- DtdParser.cs
- MethodSignatureGenerator.cs
- GrammarBuilder.cs
- Transform.cs
- StreamWriter.cs
- DataGridViewUtilities.cs
- ReferenceEqualityComparer.cs
- indexingfiltermarshaler.cs
- EntityCommandCompilationException.cs
- HttpVersion.cs
- PackageFilter.cs
- PropertyGridDesigner.cs
- IndexObject.cs
- OleDbRowUpdatingEvent.cs
- Accessors.cs
- SafePEFileHandle.cs
- Visitor.cs
- OperandQuery.cs
- ToolboxItemFilterAttribute.cs
- OneToOneMappingSerializer.cs
- ResourceProviderFactory.cs
- AdCreatedEventArgs.cs
- CachedCompositeFamily.cs
- AttachInfo.cs
- InheritanceRules.cs
- NativeMethods.cs
- WebPartManager.cs
- Animatable.cs
- AxWrapperGen.cs
- CounterCreationDataConverter.cs
- CompilerHelpers.cs
- SocketAddress.cs
- WebBrowserContainer.cs
- AccessibleObject.cs