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
- RequestQueue.cs
- OutputCache.cs
- DeviceFiltersSection.cs
- TemplateControlCodeDomTreeGenerator.cs
- CodeCompileUnit.cs
- Compiler.cs
- TabControlCancelEvent.cs
- FormCollection.cs
- XNodeNavigator.cs
- RenderingBiasValidation.cs
- NativeMethods.cs
- FilterableAttribute.cs
- X509Extension.cs
- InheritanceAttribute.cs
- CheckBoxRenderer.cs
- XhtmlTextWriter.cs
- ExpressionBuilder.cs
- TagPrefixAttribute.cs
- RepeatButtonAutomationPeer.cs
- CompareValidator.cs
- AutomationPattern.cs
- ColorConvertedBitmapExtension.cs
- ProgressBarBrushConverter.cs
- ColumnClickEvent.cs
- TextSearch.cs
- AttributeExtensions.cs
- ListControlConvertEventArgs.cs
- MsmqUri.cs
- UndoEngine.cs
- HashUtility.cs
- ReferencedAssembly.cs
- IPEndPointCollection.cs
- ConsoleKeyInfo.cs
- WizardStepBase.cs
- Base64Encoder.cs
- WebPartCatalogAddVerb.cs
- TextTreeInsertUndoUnit.cs
- DrawListViewSubItemEventArgs.cs
- WebBrowserNavigatingEventHandler.cs
- XsltCompileContext.cs
- ContractMapping.cs
- Tile.cs
- CFStream.cs
- TimeSpanOrInfiniteConverter.cs
- ScriptRef.cs
- BooleanAnimationBase.cs
- AuthenticationService.cs
- CryptoHandle.cs
- HttpDictionary.cs
- LabelEditEvent.cs
- TextTreeTextBlock.cs
- ToolStripItemTextRenderEventArgs.cs
- ExpressionEvaluator.cs
- SqlException.cs
- LogSwitch.cs
- WebConfigurationHost.cs
- ClientFactory.cs
- QilGenerator.cs
- ConsumerConnectionPoint.cs
- SystemColors.cs
- ServiceParser.cs
- xmlsaver.cs
- UIElementCollection.cs
- ToolStripDesignerAvailabilityAttribute.cs
- ExtractCollection.cs
- QueryAccessibilityHelpEvent.cs
- TextRenderer.cs
- NumericUpDownAccelerationCollection.cs
- SecurityTokenRequirement.cs
- XsdDuration.cs
- DrawingVisual.cs
- Track.cs
- PageCodeDomTreeGenerator.cs
- DesignerActionMethodItem.cs
- SystemGatewayIPAddressInformation.cs
- ResumeStoryboard.cs
- XPathBinder.cs
- CustomErrorsSectionWrapper.cs
- AssignDesigner.xaml.cs
- MouseActionValueSerializer.cs
- TextTreeInsertUndoUnit.cs
- UnlockInstanceCommand.cs
- Native.cs
- GlyphInfoList.cs
- EntityParameterCollection.cs
- ButtonBaseAdapter.cs
- NameSpaceExtractor.cs
- EventPropertyMap.cs
- CombinedGeometry.cs
- PrinterResolution.cs
- StringOutput.cs
- XmlCodeExporter.cs
- PageWrapper.cs
- WebPartCloseVerb.cs
- TabControl.cs
- ExpandCollapsePatternIdentifiers.cs
- GlobalizationAssembly.cs
- WebPartConnectionsCancelEventArgs.cs
- XPathNode.cs
- EventMemberCodeDomSerializer.cs