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
- RawStylusInputCustomDataList.cs
- AutomationElementCollection.cs
- GridViewDeleteEventArgs.cs
- SmiRequestExecutor.cs
- ExtensionQuery.cs
- WindowsRichEditRange.cs
- mediaeventargs.cs
- StyleCollection.cs
- GradientStopCollection.cs
- UnderstoodHeaders.cs
- ProjectionPruner.cs
- Claim.cs
- EntityViewGenerationConstants.cs
- PathSegment.cs
- HtmlGenericControl.cs
- FormViewPagerRow.cs
- ClrProviderManifest.cs
- DataTableReader.cs
- PrintPreviewDialog.cs
- SafeFileMappingHandle.cs
- HttpHandlerActionCollection.cs
- MemoryRecordBuffer.cs
- RelatedImageListAttribute.cs
- DbProviderFactory.cs
- TagNameToTypeMapper.cs
- Visitor.cs
- PrintEvent.cs
- Control.cs
- HtmlTableRowCollection.cs
- NotifyParentPropertyAttribute.cs
- SqlClientWrapperSmiStreamChars.cs
- ResourceReferenceKeyNotFoundException.cs
- AssemblyHash.cs
- RectAnimationClockResource.cs
- FlowDocumentReader.cs
- Vector3DKeyFrameCollection.cs
- InkCanvasFeedbackAdorner.cs
- CryptoApi.cs
- Update.cs
- TextTreeDeleteContentUndoUnit.cs
- ProviderSettings.cs
- SecurityPolicySection.cs
- HMACSHA384.cs
- OdbcConnectionStringbuilder.cs
- StringDictionary.cs
- ErrorHandler.cs
- OdbcTransaction.cs
- MediaElement.cs
- PermissionToken.cs
- CollectionView.cs
- SpeechRecognizer.cs
- LambdaCompiler.Address.cs
- UInt32.cs
- MethodSet.cs
- XmlAutoDetectWriter.cs
- CategoryAttribute.cs
- MatrixUtil.cs
- ContourSegment.cs
- FilteredDataSetHelper.cs
- XmlStreamNodeWriter.cs
- CommandLibraryHelper.cs
- ScriptComponentDescriptor.cs
- TreeViewDesigner.cs
- MetadataUtilsSmi.cs
- MethodRental.cs
- WebServiceData.cs
- RectangleF.cs
- CodeIdentifier.cs
- Bits.cs
- Math.cs
- DbExpressionRules.cs
- InternalsVisibleToAttribute.cs
- ArgumentException.cs
- Rule.cs
- DocumentPageHost.cs
- TextEffect.cs
- RadioButton.cs
- AxDesigner.cs
- LinqExpressionNormalizer.cs
- NotifyParentPropertyAttribute.cs
- XmlArrayAttribute.cs
- HMACMD5.cs
- Comparer.cs
- TimeSpanValidatorAttribute.cs
- DataSysAttribute.cs
- AssociationSetEnd.cs
- COM2ExtendedTypeConverter.cs
- TextBoxAutoCompleteSourceConverter.cs
- DebuggerService.cs
- FileDialogCustomPlacesCollection.cs
- DataGridTextBox.cs
- ComPlusTraceRecord.cs
- TabControlToolboxItem.cs
- mediaeventargs.cs
- PolygonHotSpot.cs
- Identity.cs
- ColumnBinding.cs
- ListGeneralPage.cs
- baseshape.cs
- ElementNotAvailableException.cs