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
- ToolStripContentPanel.cs
- SessionStateItemCollection.cs
- Timer.cs
- MemoryMappedViewAccessor.cs
- TaskFileService.cs
- SendSecurityHeaderElement.cs
- PackageRelationshipSelector.cs
- SimpleType.cs
- RuntimeComponentFilter.cs
- Figure.cs
- BitmapPalette.cs
- HtmlTitle.cs
- SubqueryRules.cs
- TimeStampChecker.cs
- JumpItem.cs
- LookupNode.cs
- SocketStream.cs
- _CookieModule.cs
- ComponentResourceManager.cs
- CngUIPolicy.cs
- SafeNativeMethods.cs
- ToolStripGripRenderEventArgs.cs
- OracleEncoding.cs
- ScriptingScriptResourceHandlerSection.cs
- BitmapEffectInput.cs
- Table.cs
- DataGridDesigner.cs
- ClaimComparer.cs
- WpfKnownType.cs
- GuidelineSet.cs
- MissingMemberException.cs
- SafeNativeMethodsMilCoreApi.cs
- ToolStripScrollButton.cs
- HTMLTagNameToTypeMapper.cs
- DrawingVisual.cs
- ManagementOptions.cs
- CornerRadiusConverter.cs
- JsonFormatGeneratorStatics.cs
- TreeViewItemAutomationPeer.cs
- TagNameToTypeMapper.cs
- __ConsoleStream.cs
- SerializableAttribute.cs
- DefaultWorkflowTransactionService.cs
- SmiGettersStream.cs
- SystemMulticastIPAddressInformation.cs
- DataSourceCache.cs
- NetworkCredential.cs
- InputLanguageProfileNotifySink.cs
- Utils.cs
- TextRunTypographyProperties.cs
- SlipBehavior.cs
- HttpConfigurationContext.cs
- TransformerInfo.cs
- CollectionBase.cs
- ConfigurationPropertyAttribute.cs
- Transactions.cs
- LayoutEditorPart.cs
- SystemUdpStatistics.cs
- XmlSerializerFactory.cs
- PeerCollaborationPermission.cs
- CompilerScopeManager.cs
- APCustomTypeDescriptor.cs
- XmlSchemaAnyAttribute.cs
- XPathBinder.cs
- RSAProtectedConfigurationProvider.cs
- StaticSiteMapProvider.cs
- DbProviderSpecificTypePropertyAttribute.cs
- SchemaImporter.cs
- DurationConverter.cs
- AddInToken.cs
- XmlNodeChangedEventArgs.cs
- ChannelToken.cs
- SupportsEventValidationAttribute.cs
- IdleTimeoutMonitor.cs
- Internal.cs
- SByte.cs
- CreatingCookieEventArgs.cs
- TypeUsageBuilder.cs
- LocalizationComments.cs
- _Events.cs
- CompileLiteralTextParser.cs
- WebServiceEnumData.cs
- PropertyBuilder.cs
- _FtpDataStream.cs
- Asn1IntegerConverter.cs
- HttpResponseInternalWrapper.cs
- RegexTree.cs
- LineBreakRecord.cs
- EventHandlerList.cs
- SoapMessage.cs
- ProtectedConfigurationSection.cs
- ContentPathSegment.cs
- XmlTextEncoder.cs
- TableLayoutPanel.cs
- QilCloneVisitor.cs
- RelationalExpressions.cs
- ForceCopyBuildProvider.cs
- DictionarySectionHandler.cs
- InfocardExtendedInformationCollection.cs
- OperationAbortedException.cs