Code:
/ DotNET / DotNET / 8.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
- CacheChildrenQuery.cs
- ValidatorCompatibilityHelper.cs
- DecimalAnimationUsingKeyFrames.cs
- UnsafeNativeMethodsTablet.cs
- Verify.cs
- COMException.cs
- RoleManagerEventArgs.cs
- CmsUtils.cs
- PngBitmapEncoder.cs
- DispatcherExceptionEventArgs.cs
- MemberListBinding.cs
- ExpressionBindings.cs
- PackWebRequestFactory.cs
- HttpServerProtocol.cs
- ArrayExtension.cs
- OleDbDataReader.cs
- JsonDataContract.cs
- DataGridViewAccessibleObject.cs
- ContextBase.cs
- Debug.cs
- FormViewUpdatedEventArgs.cs
- XhtmlBasicCalendarAdapter.cs
- BitmapEffectGroup.cs
- SwitchLevelAttribute.cs
- SoapClientProtocol.cs
- ErrorCodes.cs
- DiscoveryClientReferences.cs
- SqlCommandBuilder.cs
- ProfileParameter.cs
- MenuAutomationPeer.cs
- DataProviderNameConverter.cs
- NextPreviousPagerField.cs
- CultureTable.cs
- NominalTypeEliminator.cs
- __ComObject.cs
- AssemblyUtil.cs
- WebFaultClientMessageInspector.cs
- DatatypeImplementation.cs
- AssemblyBuilderData.cs
- BulletedListEventArgs.cs
- SqlErrorCollection.cs
- MailAddressCollection.cs
- ServiceDescriptionReflector.cs
- Regex.cs
- UnauthorizedWebPart.cs
- TextContainerChangedEventArgs.cs
- Int16Converter.cs
- SqlDataSourceQuery.cs
- DBParameter.cs
- DataSvcMapFile.cs
- StorageScalarPropertyMapping.cs
- URLString.cs
- OrderPreservingPipeliningMergeHelper.cs
- TextDecorationCollection.cs
- GridPatternIdentifiers.cs
- XmlQueryRuntime.cs
- DesignerDeviceConfig.cs
- HandlerBase.cs
- DoubleIndependentAnimationStorage.cs
- SyndicationContent.cs
- XmlText.cs
- SiteMapNodeItemEventArgs.cs
- Walker.cs
- CommandHelpers.cs
- ControlPropertyNameConverter.cs
- BinaryReader.cs
- CodeThrowExceptionStatement.cs
- UniqueConstraint.cs
- ServicesExceptionNotHandledEventArgs.cs
- Exceptions.cs
- DataTablePropertyDescriptor.cs
- GridViewRow.cs
- DrawingBrush.cs
- PropertyEmitter.cs
- TrustManager.cs
- NumericUpDownAccelerationCollection.cs
- PartitionResolver.cs
- MailWebEventProvider.cs
- XmlQueryCardinality.cs
- ActiveXHost.cs
- SqlUserDefinedTypeAttribute.cs
- CodeTypeDelegate.cs
- keycontainerpermission.cs
- SchemaEntity.cs
- UnsafeNativeMethods.cs
- SessionChannels.cs
- SiteIdentityPermission.cs
- TextBoxBase.cs
- InfiniteTimeSpanConverter.cs
- ImageMapEventArgs.cs
- BitmapEffectGroup.cs
- KeyTimeConverter.cs
- DefaultPrintController.cs
- TaiwanCalendar.cs
- DocumentScope.cs
- DataGridViewControlCollection.cs
- LeafCellTreeNode.cs
- DirectoryNotFoundException.cs
- ThreadStateException.cs
- Trace.cs