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
- Message.cs
- ResourceReferenceExpressionConverter.cs
- SecurityRuntime.cs
- NativeMethodsCLR.cs
- IResourceProvider.cs
- XmlAttribute.cs
- Table.cs
- AutomationPattern.cs
- ConfigXmlText.cs
- ObjectQuery_EntitySqlExtensions.cs
- TableCell.cs
- DependencyPropertyConverter.cs
- VectorValueSerializer.cs
- AssemblyBuilder.cs
- WebPartDesigner.cs
- Vector3D.cs
- _RequestCacheProtocol.cs
- BitmapEffectRenderDataResource.cs
- TextParagraphProperties.cs
- ChannelTokenTypeConverter.cs
- TypefaceMap.cs
- SynchronizationLockException.cs
- PageFunction.cs
- HostedHttpContext.cs
- TextDecorationUnitValidation.cs
- ApplicationId.cs
- CompositeCollection.cs
- SimpleTypeResolver.cs
- StorageConditionPropertyMapping.cs
- ReadWriteSpinLock.cs
- ActivityDesignerLayoutSerializers.cs
- ComponentEvent.cs
- XmlArrayItemAttributes.cs
- CompositeCollectionView.cs
- SqlDuplicator.cs
- MappingItemCollection.cs
- HttpRequestWrapper.cs
- TextTreeNode.cs
- ItemsPanelTemplate.cs
- WindowsButton.cs
- ConnectionPointCookie.cs
- AncestorChangedEventArgs.cs
- PolicyImporterElement.cs
- LongCountAggregationOperator.cs
- XmlArrayItemAttributes.cs
- QueryInterceptorAttribute.cs
- TemplatePartAttribute.cs
- WindowsFormsHost.cs
- DataViewListener.cs
- ObjectListTitleAttribute.cs
- Calendar.cs
- GridItemProviderWrapper.cs
- RsaEndpointIdentity.cs
- XmlLinkedNode.cs
- LambdaCompiler.Statements.cs
- ToolStripDropDownItem.cs
- HostProtectionPermission.cs
- NavigationCommands.cs
- ActiveXContainer.cs
- VariableElement.cs
- ActiveXSite.cs
- WaitForChangedResult.cs
- DrawingAttributesDefaultValueFactory.cs
- WmfPlaceableFileHeader.cs
- RenameRuleObjectDialog.Designer.cs
- SQlBooleanStorage.cs
- Win32SafeHandles.cs
- UserMapPath.cs
- ApplicationId.cs
- LinqDataSourceDisposeEventArgs.cs
- XmlComment.cs
- WhitespaceRule.cs
- TCPClient.cs
- ValueType.cs
- DataGridViewHeaderCell.cs
- SelectedDatesCollection.cs
- TextSelection.cs
- CapacityStreamGeometryContext.cs
- DataGrid.cs
- StructuralObject.cs
- XmlNavigatorStack.cs
- MULTI_QI.cs
- InsufficientMemoryException.cs
- BuildProvidersCompiler.cs
- SpellerError.cs
- PasswordPropertyTextAttribute.cs
- StateDesigner.Layouts.cs
- WindowsClaimSet.cs
- LicenseException.cs
- LayoutExceptionEventArgs.cs
- SkinBuilder.cs
- CellParaClient.cs
- TableRowCollection.cs
- XPathNodeList.cs
- HtmlForm.cs
- Double.cs
- HtmlCommandAdapter.cs
- CodeObjectCreateExpression.cs
- EncoderBestFitFallback.cs
- _NativeSSPI.cs