Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / System / data / design / DataAccessor.cs / 1 / DataAccessor.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All Rights Reserved.
// Information Contained Herein is Proprietary and Confidential.
//
//-----------------------------------------------------------------------------
namespace System.Data.Design {
using System;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Diagnostics;
using System.Reflection;
///
/// This is the design time object for the so-called "DataAccessor"
/// in the DataSource designer delta spec.
/// To make the minimum code change(e.g. persistence, command routing),
/// we will use the existing code model for DbTable and only expose the necessary
/// properties in this class.
///
internal class DataAccessor : DataSourceComponent {
private DesignTable designTable;
internal const string DEFAULT_BASE_CLASS = "System.ComponentModel.Component";
internal const string DEFAULT_NAME_POSTFIX = "TableAdapter";
///
/// DataAccessor is always live with a designTable
///
///
public DataAccessor(DesignTable designTable){
Debug.Assert(designTable != null, "Need to pass in designTable");
if (designTable == null) {
throw new ArgumentNullException("DesignTable");
}
this.designTable = designTable;
}
internal DesignTable DesignTable {
get {
Debug.Assert(this.designTable != null, "Should have a DesignerTable for DataAccessor");
return designTable;
}
}
}
}
// 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
- LoginCancelEventArgs.cs
- ConfigurationManagerHelperFactory.cs
- Logging.cs
- Utility.cs
- SoapParser.cs
- DataGridViewControlCollection.cs
- ElementNotEnabledException.cs
- RuntimeEnvironment.cs
- EmptyCollection.cs
- SafePEFileHandle.cs
- PenThreadWorker.cs
- ImmComposition.cs
- PolyLineSegment.cs
- ListBase.cs
- StyleSheet.cs
- TextProperties.cs
- HttpCapabilitiesBase.cs
- InvalidOleVariantTypeException.cs
- HttpApplicationFactory.cs
- SignatureDescription.cs
- AutoCompleteStringCollection.cs
- RichListBox.cs
- RoleGroupCollectionEditor.cs
- LinqDataSource.cs
- BaseCodeDomTreeGenerator.cs
- WinInetCache.cs
- DriveInfo.cs
- EditorBrowsableAttribute.cs
- ValidationHelper.cs
- DataGridViewColumnCollection.cs
- XslTransform.cs
- HwndSourceParameters.cs
- Operator.cs
- IsolatedStorageFileStream.cs
- MsmqProcessProtocolHandler.cs
- StorageEntityTypeMapping.cs
- BmpBitmapDecoder.cs
- EntityKeyElement.cs
- SelectionList.cs
- ValueType.cs
- CollectionMarkupSerializer.cs
- securitymgrsite.cs
- SymbolEqualComparer.cs
- WeakReferenceKey.cs
- XmlSchemaAttribute.cs
- AssertSection.cs
- TextElement.cs
- Int32AnimationBase.cs
- CodeAttributeDeclaration.cs
- DeflateStream.cs
- ToolStripGripRenderEventArgs.cs
- ConstrainedGroup.cs
- VectorCollectionConverter.cs
- Utils.cs
- ValidationHelpers.cs
- WebRequestModuleElement.cs
- IssuanceLicense.cs
- TdsParserHelperClasses.cs
- EmbeddedObject.cs
- DependencyPropertyKey.cs
- versioninfo.cs
- DataPagerCommandEventArgs.cs
- ChtmlTextWriter.cs
- SpeakProgressEventArgs.cs
- SimpleRecyclingCache.cs
- FlowLayoutPanel.cs
- WebPartHelpVerb.cs
- Attributes.cs
- ControlOperationBehavior.cs
- CodeDomLoader.cs
- CalloutQueueItem.cs
- SqlDuplicator.cs
- EventDescriptor.cs
- SerializableAttribute.cs
- ZipArchive.cs
- XmlUtil.cs
- path.cs
- BuildTopDownAttribute.cs
- MethodBuilder.cs
- UntypedNullExpression.cs
- ValidatorCollection.cs
- BookmarkResumptionRecord.cs
- TickBar.cs
- EncoderParameters.cs
- SystemException.cs
- HebrewNumber.cs
- ImageMapEventArgs.cs
- ContainerUtilities.cs
- ColumnResizeAdorner.cs
- TypeValidationEventArgs.cs
- _NegotiateClient.cs
- InvalidateEvent.cs
- EntityTemplateFactory.cs
- CodeAttributeArgument.cs
- BitmapEffectGroup.cs
- TypeDelegator.cs
- InlineUIContainer.cs
- ListViewInsertEventArgs.cs
- EncoderNLS.cs
- TrustExchangeException.cs