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
- Subset.cs
- WmlListAdapter.cs
- ActiveXHost.cs
- ChannelListenerBase.cs
- MemberAccessException.cs
- DrawingImage.cs
- WebPartDeleteVerb.cs
- UpdatePanelTriggerCollection.cs
- ProcessModuleDesigner.cs
- TransformerInfo.cs
- EntityDataSourceDesignerHelper.cs
- GPRECTF.cs
- ClientFormsAuthenticationCredentials.cs
- DataFieldCollectionEditor.cs
- TextTreeInsertUndoUnit.cs
- MessageEnumerator.cs
- TdsParserStaticMethods.cs
- BinaryMessageFormatter.cs
- QuotedPairReader.cs
- Panel.cs
- XmlAttribute.cs
- SoapTransportImporter.cs
- HttpGetServerProtocol.cs
- OdbcError.cs
- Sql8ExpressionRewriter.cs
- Int64AnimationUsingKeyFrames.cs
- MemoryFailPoint.cs
- SafeReversePInvokeHandle.cs
- ExtentKey.cs
- WithParamAction.cs
- Button.cs
- InvokeBase.cs
- WebColorConverter.cs
- Html32TextWriter.cs
- ProfileBuildProvider.cs
- HtmlAnchor.cs
- SoapTypeAttribute.cs
- ServiceNameCollection.cs
- SynchronizedMessageSource.cs
- PropertyChangedEventManager.cs
- _AcceptOverlappedAsyncResult.cs
- ValueType.cs
- ProtectedConfigurationSection.cs
- XPathNavigatorKeyComparer.cs
- PlatformNotSupportedException.cs
- BezierSegment.cs
- ConcurrentStack.cs
- HScrollProperties.cs
- ObjectDataSourceSelectingEventArgs.cs
- Fonts.cs
- XmlElementAttribute.cs
- Dynamic.cs
- OperationCanceledException.cs
- odbcmetadatafactory.cs
- Baml2006SchemaContext.cs
- ELinqQueryState.cs
- XmlSchemaAnnotated.cs
- Color.cs
- ToolStripSettings.cs
- DataTableMapping.cs
- ReadWriteControlDesigner.cs
- ConstrainedDataObject.cs
- TransactionScope.cs
- Propagator.JoinPropagator.cs
- KeyGestureValueSerializer.cs
- StringWriter.cs
- SourceFilter.cs
- TemplateControlCodeDomTreeGenerator.cs
- FunctionDefinition.cs
- TagNameToTypeMapper.cs
- GetMemberBinder.cs
- TextEmbeddedObject.cs
- ReflectionUtil.cs
- DesignerAttribute.cs
- UserNamePasswordServiceCredential.cs
- TimeSpan.cs
- DispatcherSynchronizationContext.cs
- XmlAggregates.cs
- IntegerFacetDescriptionElement.cs
- OdbcPermission.cs
- RegexFCD.cs
- RemoteWebConfigurationHost.cs
- WrapPanel.cs
- TreeViewDataItemAutomationPeer.cs
- MemberAssignmentAnalysis.cs
- UriScheme.cs
- XamlFilter.cs
- TextAnchor.cs
- DataRowChangeEvent.cs
- StaticFileHandler.cs
- ModuleBuilderData.cs
- EdgeProfileValidation.cs
- TextStore.cs
- GridEntryCollection.cs
- DesignerAdRotatorAdapter.cs
- SQLString.cs
- AllowedAudienceUriElement.cs
- RemoveStoryboard.cs
- HotSpotCollection.cs
- ListSourceHelper.cs