Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- WebProxyScriptElement.cs
- ConnectionPoint.cs
- StringFormat.cs
- HashMembershipCondition.cs
- OrthographicCamera.cs
- MetaChildrenColumn.cs
- AssemblyAttributes.cs
- EndpointBehaviorElement.cs
- coordinatorscratchpad.cs
- SqlDataSourceCommandEventArgs.cs
- InkCanvasAutomationPeer.cs
- ErrorFormatterPage.cs
- CallSiteBinder.cs
- DisableDpiAwarenessAttribute.cs
- FrugalList.cs
- SharingService.cs
- _LocalDataStoreMgr.cs
- TouchesCapturedWithinProperty.cs
- RemotingConfigParser.cs
- __Error.cs
- XmlTextReaderImpl.cs
- TimeSpanValidator.cs
- RemoteArgument.cs
- ResourceIDHelper.cs
- DispatcherObject.cs
- RegexTree.cs
- URIFormatException.cs
- PeerInvitationResponse.cs
- Missing.cs
- CmsUtils.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- WorkflowPersistenceService.cs
- BridgeDataRecord.cs
- InvalidPrinterException.cs
- ExpressionDumper.cs
- PropertyPathWorker.cs
- ResXBuildProvider.cs
- SystemDiagnosticsSection.cs
- UnsafeNativeMethods.cs
- Int32Collection.cs
- ZeroOpNode.cs
- DateTimeUtil.cs
- storepermission.cs
- ControlPaint.cs
- WeakReferenceList.cs
- CodeAccessPermission.cs
- TerminatorSinks.cs
- ProxyHwnd.cs
- ModelTreeEnumerator.cs
- CommandLineParser.cs
- SQLBytesStorage.cs
- SmiRecordBuffer.cs
- DataRelationCollection.cs
- NetTcpBindingCollectionElement.cs
- EntityDataSourceStatementEditorForm.cs
- GlobalAclOperationRequirement.cs
- TypeDefinition.cs
- QilVisitor.cs
- RequestResizeEvent.cs
- SoapFault.cs
- Calendar.cs
- DataPointer.cs
- ProcessModelSection.cs
- DecoderNLS.cs
- ExpressionList.cs
- BinHexDecoder.cs
- QueryStringParameter.cs
- Byte.cs
- QuotedPrintableStream.cs
- TimeEnumHelper.cs
- EntityDataSourceSelectedEventArgs.cs
- Control.cs
- LinqDataSourceContextData.cs
- SourceSwitch.cs
- PeerNameRecord.cs
- ListViewInsertEventArgs.cs
- DataSourceXmlAttributeAttribute.cs
- SiteMembershipCondition.cs
- TextDecorations.cs
- GiveFeedbackEvent.cs
- QilPatternFactory.cs
- CompilationLock.cs
- RegistrationServices.cs
- DoubleCollectionValueSerializer.cs
- Vector3dCollection.cs
- EntityDataSourceDataSelectionPanel.designer.cs
- HttpCookieCollection.cs
- HashSet.cs
- Byte.cs
- Profiler.cs
- DbExpressionRules.cs
- ProfileBuildProvider.cs
- WindowsFormsSynchronizationContext.cs
- VersionPair.cs
- StringUtil.cs
- BulletedList.cs
- ToolStripStatusLabel.cs
- Rotation3DAnimationUsingKeyFrames.cs
- ItemCheckedEvent.cs
- TypeSystem.cs