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
- ResourcePart.cs
- ParseChildrenAsPropertiesAttribute.cs
- TdsParserSafeHandles.cs
- CompleteWizardStep.cs
- LightweightCodeGenerator.cs
- EdmProperty.cs
- XamlReaderConstants.cs
- DynamicContractTypeBuilder.cs
- FileUtil.cs
- OperationPickerDialog.designer.cs
- Application.cs
- ProfileModule.cs
- ColorComboBox.cs
- DescendantQuery.cs
- ReadOnlyTernaryTree.cs
- ImageSourceConverter.cs
- BinaryCommonClasses.cs
- LinkClickEvent.cs
- Int32.cs
- DataBoundControlAdapter.cs
- FontFamilyValueSerializer.cs
- TransformerInfoCollection.cs
- XmlFormatExtensionAttribute.cs
- NonParentingControl.cs
- DecimalConverter.cs
- ipaddressinformationcollection.cs
- ClientConfigPaths.cs
- GenericsInstances.cs
- RichTextBoxConstants.cs
- XmlDictionaryReader.cs
- ToolStripStatusLabel.cs
- LoginDesigner.cs
- _BasicClient.cs
- DependencySource.cs
- XmlDataProvider.cs
- ProfileGroupSettings.cs
- DeferrableContentConverter.cs
- SafeReversePInvokeHandle.cs
- odbcmetadatafactory.cs
- MenuScrollingVisibilityConverter.cs
- ButtonBase.cs
- PropertyChangeTracker.cs
- RepeatButton.cs
- DataControlPagerLinkButton.cs
- ResourcesChangeInfo.cs
- PointLight.cs
- CanonicalXml.cs
- ByeOperationAsyncResult.cs
- WindowAutomationPeer.cs
- CodeTypeMember.cs
- CodePropertyReferenceExpression.cs
- DesignerHost.cs
- ChannelListenerBase.cs
- Debug.cs
- InternalDispatchObject.cs
- DynamicArgumentDesigner.xaml.cs
- SrgsRulesCollection.cs
- ProviderConnectionPointCollection.cs
- Page.cs
- LineInfo.cs
- SoundPlayer.cs
- StaticTextPointer.cs
- ConfigErrorGlyph.cs
- Decoder.cs
- ListBase.cs
- FrugalList.cs
- TagPrefixCollection.cs
- RectangleF.cs
- AmbientLight.cs
- CodeIndexerExpression.cs
- SortDescriptionCollection.cs
- ConfigurationStrings.cs
- Int64.cs
- IUnknownConstantAttribute.cs
- DataMemberFieldConverter.cs
- OpenCollectionAsyncResult.cs
- DbMetaDataCollectionNames.cs
- DataGridRow.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- SqlParameterCollection.cs
- FtpWebResponse.cs
- FlowDocumentPage.cs
- StoreItemCollection.Loader.cs
- HwndSource.cs
- Variant.cs
- FormViewUpdateEventArgs.cs
- ListenerElementsCollection.cs
- PlainXmlSerializer.cs
- DescendantBaseQuery.cs
- SubMenuStyle.cs
- CodeNamespaceImportCollection.cs
- Subset.cs
- RoleManagerEventArgs.cs
- WebPartManager.cs
- EncoderFallback.cs
- SqlDataSource.cs
- BitmapFrameEncode.cs
- BasicAsyncResult.cs
- MethodBuilder.cs
- RegexFCD.cs