Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- RemotingConfigParser.cs
- KeyNotFoundException.cs
- AffineTransform3D.cs
- XPathAxisIterator.cs
- MatchAllMessageFilter.cs
- UnionCqlBlock.cs
- PageMediaType.cs
- SingleObjectCollection.cs
- MetadataItemEmitter.cs
- CheckedListBox.cs
- LogConverter.cs
- BrowserCapabilitiesFactory.cs
- EntityDataSourceViewSchema.cs
- SoapEnvelopeProcessingElement.cs
- DataBoundControlAdapter.cs
- AddInBase.cs
- Help.cs
- UIElementAutomationPeer.cs
- XsdCachingReader.cs
- WriteTimeStream.cs
- WebServiceTypeData.cs
- DataSourceGroupCollection.cs
- IWorkflowDebuggerService.cs
- RegionIterator.cs
- MetadataArtifactLoaderResource.cs
- TargetException.cs
- BitmapCacheBrush.cs
- PropertyDescriptorComparer.cs
- SyntaxCheck.cs
- TableLayoutPanelResizeGlyph.cs
- UICuesEvent.cs
- WebSysDefaultValueAttribute.cs
- _HeaderInfoTable.cs
- GridViewCellAutomationPeer.cs
- AttributedMetaModel.cs
- DoWorkEventArgs.cs
- TextBoxBase.cs
- DataGridViewImageColumn.cs
- SessionSwitchEventArgs.cs
- ObsoleteAttribute.cs
- FileDialogPermission.cs
- UnsafeNetInfoNativeMethods.cs
- WinEventHandler.cs
- XmlAttributeOverrides.cs
- DateBoldEvent.cs
- Literal.cs
- TagMapCollection.cs
- XsdBuildProvider.cs
- PenContext.cs
- CapacityStreamGeometryContext.cs
- DataTableNewRowEvent.cs
- XmlImplementation.cs
- BackgroundWorker.cs
- XmlWhitespace.cs
- DataSourceControl.cs
- QilSortKey.cs
- CodeMemberProperty.cs
- dbenumerator.cs
- JsonUriDataContract.cs
- GridPatternIdentifiers.cs
- Package.cs
- URLMembershipCondition.cs
- altserialization.cs
- AutoFocusStyle.xaml.cs
- WebPartEditVerb.cs
- DbConnectionStringCommon.cs
- TcpClientChannel.cs
- HtmlHead.cs
- TextRangeSerialization.cs
- WindowsEditBox.cs
- SpecialNameAttribute.cs
- DataGridLinkButton.cs
- ProxyDataContractResolver.cs
- SqlCacheDependency.cs
- SafeThreadHandle.cs
- RegexRunnerFactory.cs
- RelationshipConverter.cs
- ListBoxItemAutomationPeer.cs
- PassportAuthenticationEventArgs.cs
- VersionedStream.cs
- SoapReflector.cs
- CalendarButton.cs
- WebUtility.cs
- MailDefinitionBodyFileNameEditor.cs
- PageHandlerFactory.cs
- WindowsGrip.cs
- Stackframe.cs
- Effect.cs
- WindowExtensionMethods.cs
- Command.cs
- InitializationEventAttribute.cs
- HierarchicalDataSourceIDConverter.cs
- TextBox.cs
- SystemGatewayIPAddressInformation.cs
- TextMarkerSource.cs
- RunClient.cs
- TemplateField.cs
- WebBrowser.cs
- SuppressIldasmAttribute.cs
- UnderstoodHeaders.cs