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
- OdbcError.cs
- SqlServer2KCompatibilityAnnotation.cs
- DecoderFallbackWithFailureFlag.cs
- NaturalLanguageHyphenator.cs
- AllMembershipCondition.cs
- CommandDevice.cs
- SHA384Managed.cs
- SecurityTokenContainer.cs
- Vars.cs
- BaseTemplateParser.cs
- LocalFileSettingsProvider.cs
- CompletionCallbackWrapper.cs
- UndoEngine.cs
- GlyphElement.cs
- ShellProvider.cs
- MethodMessage.cs
- MouseOverProperty.cs
- LightweightEntityWrapper.cs
- MaterialCollection.cs
- Perspective.cs
- HtmlElementEventArgs.cs
- OwnerDrawPropertyBag.cs
- CodeGeneratorOptions.cs
- ContentType.cs
- PictureBox.cs
- UserPreferenceChangedEventArgs.cs
- MonthCalendar.cs
- WebHttpSecurityElement.cs
- TransformedBitmap.cs
- AsyncStreamReader.cs
- RequestCachingSection.cs
- GetPageNumberCompletedEventArgs.cs
- CheckBoxFlatAdapter.cs
- FrameworkContentElement.cs
- UserPersonalizationStateInfo.cs
- HostProtectionPermission.cs
- Header.cs
- PartialCachingAttribute.cs
- ButtonAutomationPeer.cs
- Block.cs
- CryptoKeySecurity.cs
- OutputCacheProfileCollection.cs
- XmlSchemaAttribute.cs
- MissingFieldException.cs
- CodeParameterDeclarationExpression.cs
- ProfileGroupSettings.cs
- EditorBrowsableAttribute.cs
- SerializableReadOnlyDictionary.cs
- UserNameSecurityTokenAuthenticator.cs
- AssociationSetMetadata.cs
- TypeDependencyAttribute.cs
- XmlnsPrefixAttribute.cs
- EnumConverter.cs
- XmlKeywords.cs
- JsonSerializer.cs
- ParameterReplacerVisitor.cs
- PopOutPanel.cs
- XamlTypeWithExplicitNamespace.cs
- ResourceAttributes.cs
- XPathSelectionIterator.cs
- EventLogPermissionEntry.cs
- CheckPair.cs
- SystemSounds.cs
- SqlClientWrapperSmiStreamChars.cs
- Error.cs
- XmlSchema.cs
- ColorContext.cs
- PlainXmlDeserializer.cs
- ScrollPattern.cs
- SplitterEvent.cs
- JournalNavigationScope.cs
- SafeNativeMemoryHandle.cs
- Geometry3D.cs
- WebEventTraceProvider.cs
- WindowsPrincipal.cs
- MergablePropertyAttribute.cs
- HttpCacheVaryByContentEncodings.cs
- ResourceCategoryAttribute.cs
- EntityDataSourceColumn.cs
- PrivilegedConfigurationManager.cs
- TargetConverter.cs
- EntityDataSourceDataSelection.cs
- OptimizerPatterns.cs
- SocketSettings.cs
- TextCharacters.cs
- Rect.cs
- MemberDescriptor.cs
- webclient.cs
- MailAddress.cs
- jithelpers.cs
- _Win32.cs
- KeyBinding.cs
- ReferenceSchema.cs
- ToolStripComboBox.cs
- Shared.cs
- DataTableMapping.cs
- IdentityVerifier.cs
- remotingproxy.cs
- CompoundFileIOPermission.cs
- EventLogHandle.cs