Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- DirectoryRedirect.cs
- Rfc4050KeyFormatter.cs
- RouteValueDictionary.cs
- PlanCompiler.cs
- AuthenticationService.cs
- ToolStripSettings.cs
- XmlArrayItemAttribute.cs
- ControlLocalizer.cs
- ExternalException.cs
- EllipseGeometry.cs
- EventEntry.cs
- BulletChrome.cs
- DataRelationPropertyDescriptor.cs
- ScrollChrome.cs
- FontUnit.cs
- RangeEnumerable.cs
- ReadOnlyNameValueCollection.cs
- XmlSchemaGroup.cs
- HotSpot.cs
- Memoizer.cs
- FixedSOMTableRow.cs
- HttpWebRequest.cs
- EventSinkHelperWriter.cs
- RegistryConfigurationProvider.cs
- SystemDiagnosticsSection.cs
- DocobjHost.cs
- OuterGlowBitmapEffect.cs
- SqlDataReaderSmi.cs
- AuthenticationManager.cs
- CompilerLocalReference.cs
- BackgroundWorker.cs
- InkCanvasSelectionAdorner.cs
- SourceFileBuildProvider.cs
- PageRanges.cs
- MimeTypePropertyAttribute.cs
- SrgsDocumentParser.cs
- WebPartDescription.cs
- FrameworkElementFactoryMarkupObject.cs
- QueueException.cs
- MasterPageParser.cs
- SqlEnums.cs
- TypeUtil.cs
- SmtpReplyReader.cs
- PropertyChangedEventManager.cs
- ProxyFragment.cs
- RuntimeResourceSet.cs
- SafeRightsManagementQueryHandle.cs
- PermissionSet.cs
- TranslateTransform3D.cs
- TransactionInterop.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- BamlMapTable.cs
- StaticDataManager.cs
- AnonymousIdentificationModule.cs
- Column.cs
- CustomAttributeFormatException.cs
- CompilationUtil.cs
- PageContentAsyncResult.cs
- WinFormsSpinner.cs
- ReferencedType.cs
- AppSettingsReader.cs
- ByteAnimation.cs
- TextTreeTextBlock.cs
- RegexMatch.cs
- Padding.cs
- ListViewUpdatedEventArgs.cs
- CriticalHandle.cs
- UndoUnit.cs
- QueryCursorEventArgs.cs
- DataControlFieldHeaderCell.cs
- ProxyWebPart.cs
- FormsAuthentication.cs
- CodeBinaryOperatorExpression.cs
- SspiHelper.cs
- PagerStyle.cs
- CodeSubDirectory.cs
- XsltLoader.cs
- OdbcCommand.cs
- NetTcpBinding.cs
- PieceDirectory.cs
- StickyNote.cs
- _SecureChannel.cs
- FacetChecker.cs
- SortableBindingList.cs
- PrivacyNoticeBindingElementImporter.cs
- FamilyCollection.cs
- AccessKeyManager.cs
- TTSVoice.cs
- WebPartPersonalization.cs
- ContextStack.cs
- BezierSegment.cs
- AsyncOperation.cs
- SoapMessage.cs
- MatrixCamera.cs
- ImageListUtils.cs
- DesignerDataSourceView.cs
- ListViewUpdatedEventArgs.cs
- ErrorWebPart.cs
- LocalBuilder.cs
- RelationshipEnd.cs