Code:
/ 4.0 / 4.0 / 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. //---------------------------------------------------------------------- //// 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
- ActivityScheduledQuery.cs
- ObservableDictionary.cs
- XLinq.cs
- DataGridViewElement.cs
- DbDataRecord.cs
- Reference.cs
- InputMethodStateChangeEventArgs.cs
- tibetanshape.cs
- DESCryptoServiceProvider.cs
- OledbConnectionStringbuilder.cs
- EntityTypeEmitter.cs
- SoapObjectReader.cs
- TransactionManager.cs
- storepermission.cs
- ConfigurationElementCollection.cs
- GridViewCellAutomationPeer.cs
- ConnectionConsumerAttribute.cs
- ArrayWithOffset.cs
- TrackingProfileSerializer.cs
- ApplicationSettingsBase.cs
- EntityClientCacheKey.cs
- WebScriptClientGenerator.cs
- SimpleRecyclingCache.cs
- WebPartMinimizeVerb.cs
- QuadraticBezierSegment.cs
- PrePostDescendentsWalker.cs
- ExpressionCopier.cs
- TemplateBuilder.cs
- WebPartChrome.cs
- ServiceDescription.cs
- ArrangedElementCollection.cs
- ContentDisposition.cs
- HierarchicalDataBoundControl.cs
- MatrixConverter.cs
- X509CertificateStore.cs
- shaperfactoryquerycacheentry.cs
- ReflectTypeDescriptionProvider.cs
- RectKeyFrameCollection.cs
- GridLengthConverter.cs
- UriTemplateVariableQueryValue.cs
- DoubleAnimationUsingPath.cs
- ConfigurationManager.cs
- CompiledRegexRunner.cs
- ExtendedPropertyDescriptor.cs
- wgx_exports.cs
- MimeXmlReflector.cs
- BmpBitmapEncoder.cs
- Vector3D.cs
- WebPartVerbsEventArgs.cs
- URLMembershipCondition.cs
- DesignerProperties.cs
- ToolStripContentPanelDesigner.cs
- InputScope.cs
- WindowsListView.cs
- XmlWrappingReader.cs
- Catch.cs
- SqlClientPermission.cs
- ApplyTemplatesAction.cs
- ListChangedEventArgs.cs
- InputManager.cs
- FrameDimension.cs
- InplaceBitmapMetadataWriter.cs
- DecoratedNameAttribute.cs
- SecurityResources.cs
- AssemblyCacheEntry.cs
- IODescriptionAttribute.cs
- NotifyParentPropertyAttribute.cs
- PolicyManager.cs
- MailWriter.cs
- NativeMethods.cs
- BaseDataListDesigner.cs
- securestring.cs
- _PooledStream.cs
- CompensationHandlingFilter.cs
- UnsignedPublishLicense.cs
- TableDetailsCollection.cs
- EntityDataSourceUtil.cs
- PkcsUtils.cs
- Slider.cs
- RtType.cs
- SByteStorage.cs
- PageClientProxyGenerator.cs
- IconBitmapDecoder.cs
- EntityUtil.cs
- SocketPermission.cs
- AtlasWeb.Designer.cs
- ScrollBar.cs
- VisualStyleRenderer.cs
- WebServicesDescriptionAttribute.cs
- X509ChainElement.cs
- SqlDataSourceCommandParser.cs
- DiscoveryRequestHandler.cs
- BuildProviderUtils.cs
- HuffModule.cs
- log.cs
- ImageMapEventArgs.cs
- CaseInsensitiveOrdinalStringComparer.cs
- StylusButtonCollection.cs
- XmlSchemaAll.cs
- CommandSet.cs