Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / CompMod / System / ComponentModel / Design / Data / DesignerDataTableBase.cs / 1 / DesignerDataTableBase.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.ComponentModel.Design.Data {
using System;
using System.Collections;
///
/// Represents a base table in a data connection. DesignerDataTable and
/// DesignerDataView derive from this class.
///
public abstract class DesignerDataTableBase {
private ICollection _columns;
private string _name;
private string _owner;
///
///
protected DesignerDataTableBase(string name) {
_name = name;
}
///
///
protected DesignerDataTableBase(string name, string owner) {
_name = name;
_owner = owner;
}
///
/// The collection of columns in the table.
///
public ICollection Columns {
get {
if (_columns == null) {
_columns = CreateColumns();
}
return _columns;
}
}
///
/// The name of the table.
///
public string Name {
get {
return _name;
}
}
///
/// The owner of the table.
///
public string Owner {
get {
return _owner;
}
}
///
/// This method will be called the first time the Columns property
/// is accessed. It should return a collection of DesignerDataColumn
/// objects representing this table's columns.
///
protected abstract ICollection CreateColumns();
}
}
// 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
- XPathAxisIterator.cs
- WeakReference.cs
- XamlGridLengthSerializer.cs
- Operand.cs
- HtmlFormWrapper.cs
- SaveFileDialog.cs
- DescendentsWalker.cs
- mongolianshape.cs
- ManagedWndProcTracker.cs
- ListManagerBindingsCollection.cs
- LinqDataSourceValidationException.cs
- WebPartCatalogAddVerb.cs
- HashRepartitionEnumerator.cs
- CacheAxisQuery.cs
- UserMapPath.cs
- SafeViewOfFileHandle.cs
- ConfigurationStrings.cs
- DateTime.cs
- XamlSerializerUtil.cs
- ParseNumbers.cs
- BufferedReceiveManager.cs
- EncoderReplacementFallback.cs
- IntegerValidatorAttribute.cs
- BreakRecordTable.cs
- FixedPageStructure.cs
- VSWCFServiceContractGenerator.cs
- translator.cs
- HttpListenerTimeoutManager.cs
- ManifestResourceInfo.cs
- AsyncSerializedWorker.cs
- HtmlEmptyTagControlBuilder.cs
- Random.cs
- PropertyEntry.cs
- RuleRefElement.cs
- Connection.cs
- ToolBar.cs
- ListenerElementsCollection.cs
- DesignerTransaction.cs
- CngKey.cs
- StreamingContext.cs
- IdentifierCollection.cs
- XPathArrayIterator.cs
- ConfigXmlCDataSection.cs
- HttpInputStream.cs
- LayoutInformation.cs
- TextRenderer.cs
- CardSpaceSelector.cs
- SmiMetaDataProperty.cs
- SimpleApplicationHost.cs
- StorageAssociationSetMapping.cs
- HTTP_SERVICE_CONFIG_URLACL_PARAM.cs
- PrintDialog.cs
- ResourceIDHelper.cs
- ImageFormat.cs
- WmpBitmapEncoder.cs
- XAMLParseException.cs
- FrameworkElementAutomationPeer.cs
- Trace.cs
- PerformanceCounterPermissionAttribute.cs
- FixedFlowMap.cs
- Dump.cs
- XmlImplementation.cs
- RelationshipConverter.cs
- HwndProxyElementProvider.cs
- OperandQuery.cs
- StdValidatorsAndConverters.cs
- WsdlInspector.cs
- SecurityDescriptor.cs
- Clipboard.cs
- FixedSOMImage.cs
- ZipIOLocalFileDataDescriptor.cs
- XsltException.cs
- DataGridViewRowPostPaintEventArgs.cs
- TrackingConditionCollection.cs
- HyperlinkAutomationPeer.cs
- CodeTypeDeclaration.cs
- HttpAsyncResult.cs
- WebHeaderCollection.cs
- Condition.cs
- TargetException.cs
- BmpBitmapDecoder.cs
- QilInvokeLateBound.cs
- x509store.cs
- ResourceExpressionEditorSheet.cs
- GZipStream.cs
- HttpModuleActionCollection.cs
- serverconfig.cs
- NativeMethods.cs
- _NegoStream.cs
- TypeHelpers.cs
- Line.cs
- XpsS0ValidatingLoader.cs
- DataSourceControlBuilder.cs
- LookupNode.cs
- LongPath.cs
- SchemaImporterExtensionElement.cs
- CodeTypeReference.cs
- GlobalizationSection.cs
- ResizeGrip.cs
- SafeLocalMemHandle.cs