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
- AccessControlList.cs
- TextMarkerSource.cs
- ComponentDispatcherThread.cs
- ObjectResult.cs
- SqlPersonalizationProvider.cs
- WindowsGraphicsWrapper.cs
- PolyBezierSegmentFigureLogic.cs
- CalendarButton.cs
- ScriptDescriptor.cs
- WindowsListView.cs
- SafeCryptoHandles.cs
- PathFigure.cs
- OdbcErrorCollection.cs
- SqlException.cs
- BounceEase.cs
- SqlParameterCollection.cs
- ColorBlend.cs
- NamespaceQuery.cs
- Scripts.cs
- ChtmlTextWriter.cs
- HtmlForm.cs
- NavigateEvent.cs
- ReferenceTypeElement.cs
- TextElementEnumerator.cs
- FileDialog_Vista.cs
- ProtocolInformationReader.cs
- UnitySerializationHolder.cs
- MILUtilities.cs
- Int32.cs
- UpDownEvent.cs
- EmissiveMaterial.cs
- FontDialog.cs
- SystemInfo.cs
- TranslateTransform3D.cs
- IncrementalReadDecoders.cs
- XmlNode.cs
- EdmRelationshipRoleAttribute.cs
- BinaryParser.cs
- DelegateSerializationHolder.cs
- IntPtr.cs
- XmlSchemaSequence.cs
- QuaternionConverter.cs
- ProgressChangedEventArgs.cs
- XamlVector3DCollectionSerializer.cs
- CqlIdentifiers.cs
- CursorInteropHelper.cs
- RtfControlWordInfo.cs
- DbConnectionPool.cs
- InstanceCreationEditor.cs
- MetadataArtifactLoaderResource.cs
- UnorderedHashRepartitionStream.cs
- SystemEvents.cs
- IResourceProvider.cs
- ScrollData.cs
- MenuAdapter.cs
- SecurityCriticalDataForSet.cs
- EventTrigger.cs
- DefaultValueTypeConverter.cs
- OpenFileDialog.cs
- TemplateField.cs
- ConfigurationValue.cs
- UnauthorizedWebPart.cs
- QilCloneVisitor.cs
- Vector3DKeyFrameCollection.cs
- CompositionAdorner.cs
- SmtpDigestAuthenticationModule.cs
- XPathNavigatorKeyComparer.cs
- EntityDataSourceContextCreatedEventArgs.cs
- SqlTypeSystemProvider.cs
- TreeNodeBindingCollection.cs
- InvalidPropValue.cs
- DocumentXPathNavigator.cs
- DragCompletedEventArgs.cs
- SmtpLoginAuthenticationModule.cs
- ConstructorBuilder.cs
- _NestedSingleAsyncResult.cs
- CodeIdentifiers.cs
- SettingsProperty.cs
- IndexOutOfRangeException.cs
- IdentityReference.cs
- PenCursorManager.cs
- HttpCapabilitiesSectionHandler.cs
- Int16Storage.cs
- MetadataPropertyCollection.cs
- StrokeSerializer.cs
- WebPartRestoreVerb.cs
- IntSecurity.cs
- XmlComment.cs
- CustomWebEventKey.cs
- Int32AnimationUsingKeyFrames.cs
- PrimaryKeyTypeConverter.cs
- TypeContext.cs
- UIElement.cs
- LifetimeServices.cs
- SQLConvert.cs
- DescendantQuery.cs
- QueueProcessor.cs
- GridViewRowPresenterBase.cs
- WMIGenerator.cs
- BaseParagraph.cs