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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RandomNumberGenerator.cs
- DoubleKeyFrameCollection.cs
- DefaultAssemblyResolver.cs
- TrustLevelCollection.cs
- ExpandedProjectionNode.cs
- TypefaceMap.cs
- ConfigurationLockCollection.cs
- OutputBuffer.cs
- DesignTimeData.cs
- CorePropertiesFilter.cs
- SymbolResolver.cs
- ActivityDesignerAccessibleObject.cs
- KeyEvent.cs
- SQLInt32Storage.cs
- DataFormats.cs
- WpfWebRequestHelper.cs
- BaseDataBoundControlDesigner.cs
- SQLDoubleStorage.cs
- DesignerView.cs
- SessionParameter.cs
- DiscoveryClientOutputChannel.cs
- XmlIgnoreAttribute.cs
- BuildProviderAppliesToAttribute.cs
- StylusPoint.cs
- MediaCommands.cs
- CounterSample.cs
- ServiceReference.cs
- MatrixAnimationUsingKeyFrames.cs
- PreProcessInputEventArgs.cs
- controlskin.cs
- InputProviderSite.cs
- TreeNode.cs
- RectAnimation.cs
- SingleAnimationUsingKeyFrames.cs
- LocationInfo.cs
- TextSpan.cs
- DbModificationClause.cs
- SafeThemeHandle.cs
- ApplicationActivator.cs
- ProviderUtil.cs
- Html32TextWriter.cs
- BulletedList.cs
- Collection.cs
- ContextStack.cs
- ImportContext.cs
- SmtpException.cs
- PropertyGeneratedEventArgs.cs
- SecurityKeyIdentifierClause.cs
- ProfileGroupSettingsCollection.cs
- LingerOption.cs
- OleDbParameter.cs
- DoubleSumAggregationOperator.cs
- Exceptions.cs
- TemplateField.cs
- GPPOINTF.cs
- WindowsGraphics.cs
- AttachedPropertyMethodSelector.cs
- BoundPropertyEntry.cs
- ChildDocumentBlock.cs
- XmlBinaryReader.cs
- ActiveDocumentEvent.cs
- PropertyGridCommands.cs
- CodeNamespaceCollection.cs
- AlgoModule.cs
- MatrixValueSerializer.cs
- ServiceObjectContainer.cs
- MultilineStringConverter.cs
- SQLBinary.cs
- ResourceManager.cs
- ParameterInfo.cs
- Configuration.cs
- PropertyEmitterBase.cs
- WpfGeneratedKnownProperties.cs
- ContractCodeDomInfo.cs
- NamespaceTable.cs
- ACL.cs
- HtmlLink.cs
- BrowserInteropHelper.cs
- FigureParaClient.cs
- TagPrefixInfo.cs
- DllHostedComPlusServiceHost.cs
- PublisherIdentityPermission.cs
- HttpStreamFormatter.cs
- SEHException.cs
- CharAnimationUsingKeyFrames.cs
- ExpandSegment.cs
- GuidConverter.cs
- Rect.cs
- Latin1Encoding.cs
- Task.cs
- comcontractssection.cs
- DocumentPage.cs
- XmlDataContract.cs
- Int16Storage.cs
- GPPOINTF.cs
- MSHTMLHostUtil.cs
- SafeSystemMetrics.cs
- CSharpCodeProvider.cs
- AnnotationResource.cs
- VBIdentifierDesigner.xaml.cs