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
- DataControlLinkButton.cs
- AlignmentXValidation.cs
- ToolStripOverflow.cs
- EventMappingSettingsCollection.cs
- QilInvokeEarlyBound.cs
- ArgumentNullException.cs
- HostUtils.cs
- LogFlushAsyncResult.cs
- EntityDataSourceWizardForm.cs
- PersonalizationStateQuery.cs
- WebConfigurationManager.cs
- RowToParametersTransformer.cs
- Viewport3DVisual.cs
- XamlFigureLengthSerializer.cs
- assemblycache.cs
- Panel.cs
- SymbolUsageManager.cs
- ProfileGroupSettings.cs
- WebMethodAttribute.cs
- Unit.cs
- BamlResourceSerializer.cs
- ReadOnlyDictionary.cs
- ListViewItem.cs
- AnnotationResource.cs
- Column.cs
- NavigationWindow.cs
- ConfigurationStrings.cs
- Attributes.cs
- Vector3DCollection.cs
- DateTimeValueSerializerContext.cs
- CompiledELinqQueryState.cs
- typedescriptorpermissionattribute.cs
- sqlser.cs
- QueryCacheManager.cs
- AtomServiceDocumentSerializer.cs
- ColumnMapCopier.cs
- HttpContext.cs
- DataGridViewComboBoxColumn.cs
- WindowsScrollBar.cs
- SequenceDesignerAccessibleObject.cs
- ReceiveDesigner.xaml.cs
- CacheOutputQuery.cs
- WebPartHelpVerb.cs
- FontDifferentiator.cs
- DropSourceBehavior.cs
- BamlLocalizer.cs
- RightsManagementEncryptionTransform.cs
- CustomCategoryAttribute.cs
- PanelStyle.cs
- HwndStylusInputProvider.cs
- CodeTypeMember.cs
- UnsafeNativeMethods.cs
- ObjectSpanRewriter.cs
- CommonGetThemePartSize.cs
- XmlCharCheckingReader.cs
- SchemaTableColumn.cs
- CompositeDataBoundControl.cs
- WCFModelStrings.Designer.cs
- CommandID.cs
- SqlDeflator.cs
- PageRanges.cs
- WebPartRestoreVerb.cs
- SqlUtils.cs
- MissingMethodException.cs
- TrimSurroundingWhitespaceAttribute.cs
- COSERVERINFO.cs
- CryptoApi.cs
- EntitySqlQueryCacheEntry.cs
- CompilationRelaxations.cs
- FormsAuthenticationEventArgs.cs
- CatalogPart.cs
- AsyncContentLoadedEventArgs.cs
- TraceRecord.cs
- RectangleF.cs
- ModuleBuilder.cs
- IndexOutOfRangeException.cs
- AssociationSetEnd.cs
- MembershipSection.cs
- MarginsConverter.cs
- CalendarItem.cs
- XmlAutoDetectWriter.cs
- HelpInfo.cs
- CursorConverter.cs
- UInt64Converter.cs
- StorageEndPropertyMapping.cs
- CapabilitiesUse.cs
- DesignerActionKeyboardBehavior.cs
- FileIOPermission.cs
- _ShellExpression.cs
- TrustLevelCollection.cs
- WizardPanelChangingEventArgs.cs
- ThumbAutomationPeer.cs
- UnrecognizedPolicyAssertionElement.cs
- ScopedKnownTypes.cs
- xamlnodes.cs
- PieceDirectory.cs
- indexingfiltermarshaler.cs
- validation.cs
- WebChannelFactory.cs
- XmlSignatureProperties.cs