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
- ScriptModule.cs
- DataRecordInfo.cs
- RenderTargetBitmap.cs
- SlotInfo.cs
- ListMarkerLine.cs
- ReflectionUtil.cs
- SoapIncludeAttribute.cs
- ScrollChrome.cs
- Gdiplus.cs
- Vector3DAnimationBase.cs
- DropTarget.cs
- EtwTrace.cs
- ExpressionContext.cs
- StringConverter.cs
- EditorServiceContext.cs
- SocketAddress.cs
- DateTimeFormatInfoScanner.cs
- ResourceAttributes.cs
- fixedPageContentExtractor.cs
- BitmapEffectInput.cs
- ExpressionBuilder.cs
- TextDecorationUnitValidation.cs
- PathNode.cs
- PropertyGroupDescription.cs
- Geometry3D.cs
- DbConnectionStringCommon.cs
- ObjectDataSourceEventArgs.cs
- AtomParser.cs
- ListViewGroupItemCollection.cs
- ImageIndexConverter.cs
- SocketAddress.cs
- Formatter.cs
- RelationshipDetailsRow.cs
- TypeElement.cs
- EntityDataSource.cs
- CompositeKey.cs
- Comparer.cs
- cache.cs
- Baml2006Reader.cs
- SBCSCodePageEncoding.cs
- HttpCookiesSection.cs
- SqlColumnizer.cs
- SoapWriter.cs
- WithStatement.cs
- PopupEventArgs.cs
- VisualStyleInformation.cs
- BodyGlyph.cs
- ScriptingWebServicesSectionGroup.cs
- MediaCommands.cs
- UIPropertyMetadata.cs
- ScriptServiceAttribute.cs
- Icon.cs
- DiagnosticTraceSchemas.cs
- AstTree.cs
- _LocalDataStore.cs
- securestring.cs
- MailHeaderInfo.cs
- TrustManager.cs
- ObjectPropertyMapping.cs
- DragStartedEventArgs.cs
- TextParagraphCache.cs
- Enlistment.cs
- LicFileLicenseProvider.cs
- Int32Storage.cs
- Metadata.cs
- ButtonAutomationPeer.cs
- RequestDescription.cs
- TextModifier.cs
- StrongName.cs
- HttpCapabilitiesSectionHandler.cs
- parserscommon.cs
- MembershipSection.cs
- HtmlEmptyTagControlBuilder.cs
- SiteMapNodeCollection.cs
- Border.cs
- SubMenuStyle.cs
- ClientEventManager.cs
- ContextMenuStripGroupCollection.cs
- SurrogateEncoder.cs
- TextTreeFixupNode.cs
- TranslateTransform.cs
- XmlChoiceIdentifierAttribute.cs
- PersonalizationProvider.cs
- SqlRewriteScalarSubqueries.cs
- Rule.cs
- DescendentsWalker.cs
- TrackBarRenderer.cs
- TypedDataSetSchemaImporterExtension.cs
- ListControlStringCollectionEditor.cs
- InstalledFontCollection.cs
- unsafeIndexingFilterStream.cs
- EncoderParameters.cs
- DecoderExceptionFallback.cs
- ObjectTypeMapping.cs
- nulltextnavigator.cs
- InvalidPropValue.cs
- Endpoint.cs
- HelpEvent.cs
- SubMenuStyleCollection.cs
- GACIdentityPermission.cs