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
- EntityDataSource.cs
- LinkDesigner.cs
- SiteMapSection.cs
- SynchronizingStream.cs
- ExpressionStringBuilder.cs
- ThicknessConverter.cs
- COAUTHIDENTITY.cs
- Action.cs
- StrokeSerializer.cs
- CorrelationManager.cs
- CounterSample.cs
- ActivityAction.cs
- IIS7UserPrincipal.cs
- CfgSemanticTag.cs
- FactoryGenerator.cs
- UnsafeNativeMethodsPenimc.cs
- DataGridViewCellPaintingEventArgs.cs
- ValueSerializerAttribute.cs
- DataGridViewButtonColumn.cs
- TextParaClient.cs
- DataGridCommandEventArgs.cs
- SqlProfileProvider.cs
- LineServicesRun.cs
- TableItemPatternIdentifiers.cs
- RelationalExpressions.cs
- LogExtent.cs
- Expr.cs
- HtmlInputFile.cs
- ListDictionaryInternal.cs
- Pointer.cs
- PrePostDescendentsWalker.cs
- _DomainName.cs
- DataGridViewComboBoxEditingControl.cs
- TextRunProperties.cs
- WorkflowStateRollbackService.cs
- HtmlMeta.cs
- DataSourceUtil.cs
- PageParserFilter.cs
- DetailsViewPagerRow.cs
- EntityPropertyMappingAttribute.cs
- EmptyElement.cs
- _ProxyChain.cs
- DuplicateWaitObjectException.cs
- UnsafeNativeMethods.cs
- OracleCommandSet.cs
- ChtmlSelectionListAdapter.cs
- OrderedEnumerableRowCollection.cs
- AudioFileOut.cs
- XmlObjectSerializerWriteContextComplex.cs
- SubpageParagraph.cs
- SubqueryRules.cs
- DefaultEventAttribute.cs
- NotSupportedException.cs
- CommonRemoteMemoryBlock.cs
- StreamSecurityUpgradeAcceptor.cs
- TypeDescriptionProviderAttribute.cs
- MenuItemBinding.cs
- DataControlImageButton.cs
- XPathBinder.cs
- RetriableClipboard.cs
- EntitySqlQueryCacheKey.cs
- ParsedAttributeCollection.cs
- ChannelToken.cs
- StringKeyFrameCollection.cs
- ErrorItem.cs
- InfiniteIntConverter.cs
- SqlUDTStorage.cs
- CorrelationManager.cs
- Timer.cs
- UIAgentCrashedException.cs
- Token.cs
- DataBinding.cs
- StorageMappingFragment.cs
- AuthenticationService.cs
- ComponentChangedEvent.cs
- FirstMatchCodeGroup.cs
- DebuggerAttributes.cs
- PowerEase.cs
- DataGridPagerStyle.cs
- ModifierKeysConverter.cs
- AppSettingsReader.cs
- TableRow.cs
- Timer.cs
- ProxyBuilder.cs
- SqlFacetAttribute.cs
- DiscoveryInnerClientAdhoc11.cs
- WindowsRichEditRange.cs
- SEHException.cs
- User.cs
- KnownBoxes.cs
- FixedSOMContainer.cs
- ClientBuildManagerCallback.cs
- CodeThrowExceptionStatement.cs
- ContextStack.cs
- SqlCommandSet.cs
- ObjectStateEntry.cs
- Char.cs
- _LocalDataStoreMgr.cs
- DebugViewWriter.cs
- SendAgentStatusRequest.cs