Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- ReferencedCollectionType.cs
- Utils.cs
- MouseGestureValueSerializer.cs
- NameObjectCollectionBase.cs
- XmlHierarchyData.cs
- ToolboxComponentsCreatingEventArgs.cs
- EntityExpressionVisitor.cs
- DataGridViewEditingControlShowingEventArgs.cs
- WorkflowPrinting.cs
- Wildcard.cs
- NotifyIcon.cs
- ConstraintCollection.cs
- RequestQueue.cs
- ApplicationProxyInternal.cs
- SoapFormatter.cs
- PlainXmlDeserializer.cs
- NumberFormatInfo.cs
- TableRowGroup.cs
- TableLayoutRowStyleCollection.cs
- TextSelectionProcessor.cs
- StylusOverProperty.cs
- AttachedPropertyMethodSelector.cs
- PermissionToken.cs
- EncodingNLS.cs
- ProcessHostConfigUtils.cs
- ToolStripOverflow.cs
- WorkflowPrinting.cs
- PageAsyncTaskManager.cs
- CodeCastExpression.cs
- HtmlCommandAdapter.cs
- GPPOINTF.cs
- ModulesEntry.cs
- LineUtil.cs
- FrameworkRichTextComposition.cs
- httpserverutility.cs
- XPathSingletonIterator.cs
- VBIdentifierTrimConverter.cs
- PropertyCondition.cs
- CodeSnippetTypeMember.cs
- TabItemWrapperAutomationPeer.cs
- BitmapCodecInfoInternal.cs
- SetState.cs
- AddInSegmentDirectoryNotFoundException.cs
- TraceContext.cs
- MasterPageParser.cs
- DataGridViewTextBoxCell.cs
- TextChange.cs
- StylusDevice.cs
- LogArchiveSnapshot.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- LambdaCompiler.Binary.cs
- InvariantComparer.cs
- DoubleCollection.cs
- BufferedOutputAsyncStream.cs
- SqlNodeAnnotation.cs
- ConnectionInterfaceCollection.cs
- BufferedGraphicsContext.cs
- ChangeInterceptorAttribute.cs
- SelectionUIHandler.cs
- DataKeyCollection.cs
- _DisconnectOverlappedAsyncResult.cs
- TextSimpleMarkerProperties.cs
- XmlAnyAttributeAttribute.cs
- SoapConverter.cs
- wgx_commands.cs
- ConfigXmlText.cs
- WindowsListViewItem.cs
- DataColumnPropertyDescriptor.cs
- SecurityDescriptor.cs
- OleDbCommandBuilder.cs
- ProcessManager.cs
- EntityDataSourceSelectingEventArgs.cs
- Bits.cs
- AmbientValueAttribute.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- DockAndAnchorLayout.cs
- SwitchAttribute.cs
- TripleDES.cs
- SrgsToken.cs
- StoreAnnotationsMap.cs
- HebrewNumber.cs
- RelationshipSet.cs
- Utils.cs
- BatchServiceHost.cs
- ModuleBuilderData.cs
- ConnectionInterfaceCollection.cs
- ToolBar.cs
- JsonSerializer.cs
- UrlAuthFailedErrorFormatter.cs
- Control.cs
- TreeViewDesigner.cs
- CmsInterop.cs
- UIElementParagraph.cs
- WindowsAuthenticationModule.cs
- BitVector32.cs
- XDeferredAxisSource.cs
- ExpressionBuilder.cs
- DataGridState.cs
- LinkedList.cs
- ObjectDataSourceEventArgs.cs