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
- OleServicesContext.cs
- HebrewNumber.cs
- SqlDependencyListener.cs
- XmlArrayItemAttribute.cs
- DataGridViewCellMouseEventArgs.cs
- WebPartTransformerCollection.cs
- ListViewDeletedEventArgs.cs
- newinstructionaction.cs
- TreeNodeSelectionProcessor.cs
- HierarchicalDataSourceControl.cs
- DataServiceEntityAttribute.cs
- NullReferenceException.cs
- ImageListUtils.cs
- EncryptedXml.cs
- ProviderUtil.cs
- DocumentSchemaValidator.cs
- DataTableCollection.cs
- RemotingException.cs
- EventDescriptorCollection.cs
- XmlAttributes.cs
- FileSystemEventArgs.cs
- MinMaxParagraphWidth.cs
- DataGridViewCellParsingEventArgs.cs
- TimeSpanValidator.cs
- DesignerProperties.cs
- ConnectionManagementElement.cs
- FunctionOverloadResolver.cs
- XmlDataContract.cs
- PageSetupDialog.cs
- Matrix.cs
- WaitHandleCannotBeOpenedException.cs
- ChildDocumentBlock.cs
- GridItem.cs
- RunInstallerAttribute.cs
- ListViewInsertEventArgs.cs
- SiteMapDataSourceView.cs
- StylusPlugin.cs
- CollectionBase.cs
- UnsafeNativeMethodsPenimc.cs
- WorkflowServiceOperationListItem.cs
- GridPatternIdentifiers.cs
- RepeaterCommandEventArgs.cs
- RenderDataDrawingContext.cs
- ColorKeyFrameCollection.cs
- MemberDomainMap.cs
- FileVersionInfo.cs
- TextTreePropertyUndoUnit.cs
- StringArrayConverter.cs
- Baml6Assembly.cs
- ArgumentElement.cs
- PrefixQName.cs
- SafeCryptoHandles.cs
- CustomAssemblyResolver.cs
- ParentQuery.cs
- PcmConverter.cs
- Matrix3D.cs
- ChameleonKey.cs
- DataGridHeaderBorder.cs
- ACL.cs
- SoapServerMessage.cs
- BaseCodePageEncoding.cs
- TypeGeneratedEventArgs.cs
- Double.cs
- MD5Cng.cs
- PageTrueTypeFont.cs
- TextEndOfParagraph.cs
- XmlProcessingInstruction.cs
- QuadraticBezierSegment.cs
- ImageSource.cs
- FolderBrowserDialogDesigner.cs
- BitmapEncoder.cs
- ExpressionNode.cs
- WebConfigurationManager.cs
- DetailsViewRowCollection.cs
- QuadraticEase.cs
- RecognizedPhrase.cs
- SqlFlattener.cs
- ConfigurationLocationCollection.cs
- BulletChrome.cs
- CorrelationManager.cs
- SiteMapHierarchicalDataSourceView.cs
- _UncName.cs
- StackBuilderSink.cs
- ServicePoint.cs
- TraceUtility.cs
- XamlDesignerSerializationManager.cs
- DataSourceBooleanViewSchemaConverter.cs
- parserscommon.cs
- DbInsertCommandTree.cs
- AnimationLayer.cs
- TransportDefaults.cs
- SimpleApplicationHost.cs
- CompositeDataBoundControl.cs
- CharAnimationBase.cs
- ObjectQueryProvider.cs
- EnumConverter.cs
- MaskedTextProvider.cs
- BufferedGraphicsContext.cs
- DataTemplateKey.cs
- RemoteWebConfigurationHostStream.cs