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
- Substitution.cs
- ClientTargetSection.cs
- EdmProviderManifest.cs
- SafeCryptoHandles.cs
- NoPersistHandle.cs
- PhonemeEventArgs.cs
- HandlerWithFactory.cs
- EarlyBoundInfo.cs
- SqlConnectionStringBuilder.cs
- RequestTimeoutManager.cs
- AssemblyAssociatedContentFileAttribute.cs
- CodeTypeDeclaration.cs
- List.cs
- InstanceDescriptor.cs
- RotationValidation.cs
- JoinTreeSlot.cs
- FamilyMap.cs
- OletxEnlistment.cs
- TextChange.cs
- NamedPermissionSet.cs
- DiscreteKeyFrames.cs
- ResourceReferenceExpression.cs
- SecurityDescriptor.cs
- EntityTransaction.cs
- TabletDeviceInfo.cs
- MediaScriptCommandRoutedEventArgs.cs
- TextServicesPropertyRanges.cs
- ToolStripStatusLabel.cs
- SmtpReplyReaderFactory.cs
- MemoryPressure.cs
- SecurityDescriptor.cs
- InvalidCastException.cs
- HtmlTitle.cs
- DocumentViewerAutomationPeer.cs
- StylusButtonEventArgs.cs
- IInstanceTable.cs
- wgx_exports.cs
- BulletedListEventArgs.cs
- ProcessModelSection.cs
- MultiPageTextView.cs
- CellParaClient.cs
- HtmlCalendarAdapter.cs
- Types.cs
- PropertyEmitterBase.cs
- TraceUtils.cs
- Lock.cs
- TabItemAutomationPeer.cs
- ThrowHelper.cs
- LinkedList.cs
- CodeAttributeDeclarationCollection.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- PassportAuthenticationEventArgs.cs
- JsonFormatWriterGenerator.cs
- EventPrivateKey.cs
- SqlCharStream.cs
- ExceptionHandlerDesigner.cs
- URLString.cs
- SecurityKeyIdentifierClause.cs
- ListViewSortEventArgs.cs
- Label.cs
- SchemaExporter.cs
- UnsafeNativeMethods.cs
- GroupQuery.cs
- DocumentViewerAutomationPeer.cs
- List.cs
- ISO2022Encoding.cs
- TraceEventCache.cs
- TcpTransportSecurityElement.cs
- HotSpotCollectionEditor.cs
- HttpHeaderCollection.cs
- TraceListener.cs
- SaveFileDialog.cs
- CustomAttributeFormatException.cs
- TextParagraphView.cs
- GcHandle.cs
- DateTimeFormat.cs
- DataServices.cs
- CharEnumerator.cs
- CachingHintValidation.cs
- XXXOnTypeBuilderInstantiation.cs
- TypedTableBase.cs
- SimpleLine.cs
- PresentationSource.cs
- FontCacheUtil.cs
- ParallelTimeline.cs
- EntityContainerAssociationSet.cs
- TaiwanCalendar.cs
- CanExecuteRoutedEventArgs.cs
- OleDbTransaction.cs
- SuppressIldasmAttribute.cs
- BitSet.cs
- TextTreeExtractElementUndoUnit.cs
- Base64Decoder.cs
- OdbcConnectionStringbuilder.cs
- DashStyles.cs
- DesignTimeValidationFeature.cs
- TranslateTransform3D.cs
- objectresult_tresulttype.cs
- _NegoStream.cs
- serverconfig.cs