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
- TransformValueSerializer.cs
- BitmapCodecInfoInternal.cs
- ReadonlyMessageFilter.cs
- TypeConverterBase.cs
- FrameworkObject.cs
- ActivityIdHeader.cs
- TypeGeneratedEventArgs.cs
- ActivityAction.cs
- EntityCommand.cs
- ObjectItemNoOpAssemblyLoader.cs
- NavigationPropertyEmitter.cs
- Utils.cs
- TransactionTable.cs
- ToolstripProfessionalRenderer.cs
- SrgsElementFactoryCompiler.cs
- ResourcesBuildProvider.cs
- WorkflowPrinting.cs
- DBPropSet.cs
- ChannelManager.cs
- XamlTypeMapper.cs
- TargetException.cs
- PenLineJoinValidation.cs
- ModifiableIteratorCollection.cs
- AppDomain.cs
- ToolStripStatusLabel.cs
- DbParameterCollection.cs
- ObjectDataSourceDisposingEventArgs.cs
- DesignerVerb.cs
- TemplateFactory.cs
- FileCodeGroup.cs
- ChooseAction.cs
- TextDecorationLocationValidation.cs
- MissingMemberException.cs
- AccessDataSource.cs
- ConfigXmlComment.cs
- CommandEventArgs.cs
- PasswordBox.cs
- SmtpAuthenticationManager.cs
- MaskInputRejectedEventArgs.cs
- ZipFileInfo.cs
- ChameleonKey.cs
- XpsSerializationException.cs
- XmlValueConverter.cs
- MissingMethodException.cs
- EncoderParameter.cs
- MenuEventArgs.cs
- DataGridViewCell.cs
- OdbcCommand.cs
- ContainerVisual.cs
- HttpRuntimeSection.cs
- TemplateControlCodeDomTreeGenerator.cs
- SemanticTag.cs
- InterleavedZipPartStream.cs
- StateInitializationDesigner.cs
- DesignSurfaceEvent.cs
- DecoderFallback.cs
- TrackBarRenderer.cs
- Condition.cs
- HandlerBase.cs
- SafeNativeMethods.cs
- BooleanProjectedSlot.cs
- PropertyToken.cs
- UInt16.cs
- SecurityVersion.cs
- CLRBindingWorker.cs
- PrintDialog.cs
- CollectionDataContract.cs
- SqlMethods.cs
- BoundsDrawingContextWalker.cs
- SignHashRequest.cs
- UpdateProgress.cs
- BinaryReader.cs
- MetadataPropertyAttribute.cs
- RSAProtectedConfigurationProvider.cs
- WebPartCollection.cs
- MiniCustomAttributeInfo.cs
- BooleanConverter.cs
- ScopelessEnumAttribute.cs
- ToolStripSplitStackLayout.cs
- MouseEventArgs.cs
- PixelFormat.cs
- MailBnfHelper.cs
- StrokeDescriptor.cs
- ChangePassword.cs
- LinkUtilities.cs
- XmlNavigatorFilter.cs
- Certificate.cs
- ProfileSection.cs
- FtpWebRequest.cs
- ConnectionPointCookie.cs
- ListViewSortEventArgs.cs
- PassportPrincipal.cs
- WizardForm.cs
- FastEncoder.cs
- BulletedList.cs
- RangeBaseAutomationPeer.cs
- DataGridViewComboBoxEditingControl.cs
- GacUtil.cs
- BinaryMethodMessage.cs
- CachedTypeface.cs