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
- Random.cs
- SmiMetaData.cs
- PackageDigitalSignature.cs
- BindingSourceDesigner.cs
- SqlParameter.cs
- DynamicEntity.cs
- BrushValueSerializer.cs
- ScriptingAuthenticationServiceSection.cs
- XmlSerializerAssemblyAttribute.cs
- TrackingMemoryStream.cs
- QilPatternFactory.cs
- FileDialog.cs
- ElementProxy.cs
- EdmItemCollection.OcAssemblyCache.cs
- ControlCachePolicy.cs
- PrintEvent.cs
- MetafileHeaderEmf.cs
- Wildcard.cs
- EventLogEntry.cs
- CompensatableSequenceActivity.cs
- FileEnumerator.cs
- TextEmbeddedObject.cs
- XmlSerializableServices.cs
- Vector3DAnimationUsingKeyFrames.cs
- SubclassTypeValidatorAttribute.cs
- PageRequestManager.cs
- Renderer.cs
- ErrorRuntimeConfig.cs
- ZipIOModeEnforcingStream.cs
- DetectRunnableInstancesTask.cs
- XmlObjectSerializerReadContext.cs
- TimelineGroup.cs
- DodSequenceMerge.cs
- DocumentPage.cs
- CallTemplateAction.cs
- GridViewItemAutomationPeer.cs
- XhtmlTextWriter.cs
- AsyncStreamReader.cs
- BufferedGenericXmlSecurityToken.cs
- WebPartVerbsEventArgs.cs
- BamlTreeMap.cs
- IndexerNameAttribute.cs
- RegistrySecurity.cs
- SelectedGridItemChangedEvent.cs
- TableSectionStyle.cs
- TextTreeExtractElementUndoUnit.cs
- EntityDataSourceWrapper.cs
- RecognizerBase.cs
- BaseParser.cs
- SQLRoleProvider.cs
- DoubleKeyFrameCollection.cs
- SafeProcessHandle.cs
- Policy.cs
- Assert.cs
- DataRow.cs
- remotingproxy.cs
- ShaderEffect.cs
- PingReply.cs
- WorkItem.cs
- IBuiltInEvidence.cs
- PerformanceCountersElement.cs
- Module.cs
- SchemaImporterExtensionElement.cs
- DeviceContext2.cs
- AsymmetricKeyExchangeDeformatter.cs
- ScrollProperties.cs
- RawKeyboardInputReport.cs
- TreeNode.cs
- DynamicValueConverter.cs
- WebConfigurationHost.cs
- CodeComment.cs
- IntegerValidator.cs
- HtmlElementErrorEventArgs.cs
- ObjectPropertyMapping.cs
- ChildChangedEventArgs.cs
- RectangleF.cs
- RankException.cs
- BypassElementCollection.cs
- ImportContext.cs
- VisualTreeUtils.cs
- Directory.cs
- Normalization.cs
- ExpressionNormalizer.cs
- EasingKeyFrames.cs
- InternalBufferManager.cs
- SafeCancelMibChangeNotify.cs
- UshortList2.cs
- CompModSwitches.cs
- StrongNamePublicKeyBlob.cs
- DocumentSequence.cs
- MultipleCopiesCollection.cs
- configsystem.cs
- DataColumnPropertyDescriptor.cs
- DbMetaDataFactory.cs
- LockedBorderGlyph.cs
- TypeViewSchema.cs
- UnescapedXmlDiagnosticData.cs
- TagNameToTypeMapper.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- SchemaImporterExtension.cs