Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / CompMod / System / ComponentModel / Design / Data / DesignerDataStoredProcedure.cs / 1 / DesignerDataStoredProcedure.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.ComponentModel.Design.Data {
using System;
using System.Collections;
///
/// Represents a single stored procedure in a data connection. A
/// collection of this type is returned from
/// IDesignerDataSchema.GetSchemaItems when it is passed
/// DesignerDataSchemaClass.StoredProcedures.
///
public abstract class DesignerDataStoredProcedure {
private string _name;
private string _owner;
private ICollection _parameters;
///
///
protected DesignerDataStoredProcedure(string name) {
_name = name;
}
///
///
protected DesignerDataStoredProcedure(string name, string owner) {
_name = name;
_owner = owner;
}
///
/// The name of the stored procedure.
///
public string Name {
get {
return _name;
}
}
///
/// The owner of the stored procedure.
///
public string Owner {
get {
return _owner;
}
}
///
/// The collection of parameters accepted by the stored procedure.
///
public ICollection Parameters {
get {
if (_parameters == null) {
_parameters = CreateParameters();
}
return _parameters;
}
}
///
/// This method will be called the first time the Parameters property
/// is accessed. It should return a collection of
/// DesignerDataParameter objects representing this stored procedure's
/// parameters. If there are no parameters, it should return an empty
/// collection (not null).
///
protected abstract ICollection CreateParameters();
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MdImport.cs
- MatrixCamera.cs
- DetailsViewUpdatedEventArgs.cs
- EntityFunctions.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- ToolstripProfessionalRenderer.cs
- IsolationInterop.cs
- FlowDocumentFormatter.cs
- InlineUIContainer.cs
- Win32PrintDialog.cs
- CodeTypeParameter.cs
- TrackingExtract.cs
- XmlAggregates.cs
- IPHostEntry.cs
- SoapProtocolReflector.cs
- LocalizationComments.cs
- TransformerInfoCollection.cs
- SpeakProgressEventArgs.cs
- GeometryDrawing.cs
- VectorValueSerializer.cs
- CommandHelpers.cs
- CalendarKeyboardHelper.cs
- ActivityCompletionCallbackWrapper.cs
- ObjectNotFoundException.cs
- CompoundFileReference.cs
- HtmlInputFile.cs
- WsatTransactionHeader.cs
- HandlerFactoryCache.cs
- DataSourceDesigner.cs
- SqlDependencyUtils.cs
- WebPartDisplayMode.cs
- SchemaImporterExtension.cs
- CustomGrammar.cs
- BuildProviderCollection.cs
- CodeDomConfigurationHandler.cs
- ToolTipAutomationPeer.cs
- NamespaceList.cs
- ValidationSummary.cs
- OperatingSystem.cs
- XamlToRtfParser.cs
- ListViewItemMouseHoverEvent.cs
- TextBoxAutomationPeer.cs
- FrugalMap.cs
- WebPartRestoreVerb.cs
- SQLUtility.cs
- CmsInterop.cs
- CompilerLocalReference.cs
- SafeProcessHandle.cs
- Array.cs
- ServiceDesigner.cs
- SelectionRange.cs
- FixedHighlight.cs
- XmlNodeComparer.cs
- DefaultTraceListener.cs
- SimpleHandlerFactory.cs
- BitmapEffectDrawingContent.cs
- coordinatorfactory.cs
- FileDetails.cs
- XmlFormatExtensionPointAttribute.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- GPStream.cs
- MsmqInputSessionChannelListener.cs
- SQLDoubleStorage.cs
- shaperfactoryquerycacheentry.cs
- BooleanConverter.cs
- Deflater.cs
- HttpPostLocalhostServerProtocol.cs
- OleDbDataReader.cs
- TargetControlTypeCache.cs
- XhtmlConformanceSection.cs
- TraceContextEventArgs.cs
- ConstructorNeedsTagAttribute.cs
- ColorBlend.cs
- XslAstAnalyzer.cs
- FixedSOMLineRanges.cs
- QuaternionRotation3D.cs
- IIS7UserPrincipal.cs
- ExpressionNode.cs
- XmlSchemaAnnotation.cs
- ThreadExceptionEvent.cs
- CompiledQueryCacheEntry.cs
- DataServiceRequest.cs
- XmlSerializationReader.cs
- CopyNamespacesAction.cs
- BoundPropertyEntry.cs
- RSAPKCS1KeyExchangeFormatter.cs
- SecurityUtils.cs
- followingsibling.cs
- System.Data_BID.cs
- ISessionStateStore.cs
- CodeAttributeArgument.cs
- DomainLiteralReader.cs
- MetadataItem.cs
- ConnectionStringEditor.cs
- SoundPlayerAction.cs
- sqlinternaltransaction.cs
- SoapCodeExporter.cs
- LiteralText.cs
- ConditionValidator.cs
- TreeIterators.cs