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
- InternalEnumValidatorAttribute.cs
- RenderContext.cs
- TreeViewCancelEvent.cs
- SpecialFolderEnumConverter.cs
- CodeConstructor.cs
- TypeHelper.cs
- CustomErrorCollection.cs
- SelectionProcessor.cs
- RijndaelCryptoServiceProvider.cs
- RichTextBox.cs
- DocumentOrderQuery.cs
- LogWriteRestartAreaState.cs
- Knowncolors.cs
- TextSerializer.cs
- DateTimeFormat.cs
- InvokeMethodActivity.cs
- FlowLayoutSettings.cs
- SqlUtils.cs
- DrawingContext.cs
- Point4DValueSerializer.cs
- XXXInfos.cs
- RoleManagerEventArgs.cs
- DependencySource.cs
- TreeView.cs
- ProxyAttribute.cs
- TimeSpanConverter.cs
- Utils.cs
- FixedBufferAttribute.cs
- XmlStreamStore.cs
- Int64KeyFrameCollection.cs
- SafeLibraryHandle.cs
- PrintDialogException.cs
- Accessors.cs
- DynamicValueConverter.cs
- DataError.cs
- TemplateContainer.cs
- AspNetRouteServiceHttpHandler.cs
- PageRequestManager.cs
- DataSourceSelectArguments.cs
- SafeNativeMethods.cs
- Soap11ServerProtocol.cs
- DataGridViewRowPrePaintEventArgs.cs
- ImageMap.cs
- AutoGeneratedFieldProperties.cs
- SmtpLoginAuthenticationModule.cs
- QuaternionKeyFrameCollection.cs
- SspiWrapper.cs
- AspNetSynchronizationContext.cs
- ServiceHttpModule.cs
- ErrorHandler.cs
- UrlMappingsSection.cs
- ErrorWebPart.cs
- PackageProperties.cs
- BridgeDataReader.cs
- UIElementPropertyUndoUnit.cs
- UdpSocket.cs
- FormViewUpdateEventArgs.cs
- Empty.cs
- XmlNamespaceManager.cs
- WebPartCloseVerb.cs
- DataError.cs
- PageContent.cs
- BmpBitmapDecoder.cs
- KeyFrames.cs
- FilteredXmlReader.cs
- TextPointerBase.cs
- GridViewAutomationPeer.cs
- Model3DGroup.cs
- InlineUIContainer.cs
- Tokenizer.cs
- DefaultClaimSet.cs
- parserscommon.cs
- SortableBindingList.cs
- ToolboxBitmapAttribute.cs
- MethodAccessException.cs
- NamespaceCollection.cs
- CalendarDateRange.cs
- DbConnectionPoolCounters.cs
- Enlistment.cs
- DbConnectionPoolGroupProviderInfo.cs
- MsmqProcessProtocolHandler.cs
- NavigationWindowAutomationPeer.cs
- CompoundFileStorageReference.cs
- ProfilePropertyMetadata.cs
- LocatorGroup.cs
- WindowsTitleBar.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- InkCanvasSelection.cs
- XmlSchema.cs
- AttributeUsageAttribute.cs
- SiteMapDataSource.cs
- GeometryModel3D.cs
- Visual3D.cs
- OptimisticConcurrencyException.cs
- DoubleConverter.cs
- WpfSharedBamlSchemaContext.cs
- CodeObject.cs
- PartitionResolver.cs
- UserControlAutomationPeer.cs
- ClassDataContract.cs