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
- XmlDictionaryString.cs
- EmptyEnumerable.cs
- TableLayout.cs
- HuffModule.cs
- Baml2006Reader.cs
- FilterException.cs
- PeerNameRecord.cs
- RuleSettings.cs
- ResourceCategoryAttribute.cs
- AsymmetricSecurityProtocolFactory.cs
- AutoResetEvent.cs
- Transform3D.cs
- QueryResponse.cs
- URLMembershipCondition.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- Crc32.cs
- nulltextcontainer.cs
- Win32Exception.cs
- DtrList.cs
- LockCookie.cs
- DocumentStream.cs
- TextShapeableCharacters.cs
- TimeoutValidationAttribute.cs
- HighContrastHelper.cs
- InstancePersistenceEvent.cs
- StreamWriter.cs
- RootProfilePropertySettingsCollection.cs
- DiscoveryExceptionDictionary.cs
- BufferModesCollection.cs
- SafeSecurityHelper.cs
- SchemaCollectionCompiler.cs
- ComponentManagerBroker.cs
- UniqueID.cs
- PenCursorManager.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- WhereQueryOperator.cs
- login.cs
- DataServiceRequestException.cs
- Quaternion.cs
- SolidColorBrush.cs
- BuildResult.cs
- LeafCellTreeNode.cs
- Pkcs9Attribute.cs
- String.cs
- List.cs
- SaveFileDialogDesigner.cs
- SctClaimSerializer.cs
- XmlCollation.cs
- RegexMatchCollection.cs
- XPathNavigator.cs
- ToolstripProfessionalRenderer.cs
- altserialization.cs
- TypeGenericEnumerableViewSchema.cs
- UdpDiscoveryMessageFilter.cs
- XmlSerializerNamespaces.cs
- SchemaElementLookUpTableEnumerator.cs
- Soap11ServerProtocol.cs
- LabelDesigner.cs
- QueryPageSettingsEventArgs.cs
- SingleAnimationUsingKeyFrames.cs
- FrugalList.cs
- LayoutTable.cs
- HTMLTextWriter.cs
- SmtpClient.cs
- ByteAnimation.cs
- DynamicValidatorEventArgs.cs
- ToolStripPanel.cs
- LineProperties.cs
- AuthenticatingEventArgs.cs
- CqlIdentifiers.cs
- EraserBehavior.cs
- SiteMapNodeItem.cs
- ThreadStaticAttribute.cs
- ImmutablePropertyDescriptorGridEntry.cs
- ContainerSelectorBehavior.cs
- EditorPartCollection.cs
- DataServiceQueryException.cs
- LineGeometry.cs
- ToolboxItemCollection.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- HtmlImage.cs
- SiteOfOriginPart.cs
- PageAsyncTaskManager.cs
- MouseButton.cs
- FrameworkName.cs
- entitydatasourceentitysetnameconverter.cs
- ConsumerConnectionPoint.cs
- IIS7WorkerRequest.cs
- ControlPropertyNameConverter.cs
- RemotingConfigParser.cs
- ForceCopyBuildProvider.cs
- XmlNamespaceMappingCollection.cs
- DataGridLinkButton.cs
- ValueSerializerAttribute.cs
- VerbConverter.cs
- ToolBarButtonDesigner.cs
- SafeHGlobalHandleCritical.cs
- MappedMetaModel.cs
- CompressStream.cs
- ListControlBuilder.cs