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
- Validator.cs
- Predicate.cs
- OperandQuery.cs
- Roles.cs
- InvalidFilterCriteriaException.cs
- SchemaTableOptionalColumn.cs
- SuppressMergeCheckAttribute.cs
- ConfigXmlText.cs
- FileAuthorizationModule.cs
- LocalizationComments.cs
- OleDbDataAdapter.cs
- ProfessionalColors.cs
- WindowsListViewGroup.cs
- StyleSheetComponentEditor.cs
- LocalizableAttribute.cs
- ResizingMessageFilter.cs
- _Semaphore.cs
- RegexFCD.cs
- BrowserInteropHelper.cs
- CommentGlyph.cs
- HtmlInputHidden.cs
- SymbolType.cs
- DbParameterHelper.cs
- SqlWebEventProvider.cs
- EditorPartDesigner.cs
- TreeBuilder.cs
- SqlDependencyUtils.cs
- FontSizeConverter.cs
- ToolStripSettings.cs
- SystemWebExtensionsSectionGroup.cs
- ArrangedElementCollection.cs
- MenuItemBindingCollection.cs
- PropertyConverter.cs
- RegexCapture.cs
- MappingModelBuildProvider.cs
- BulletedListDesigner.cs
- ToolStripArrowRenderEventArgs.cs
- ServiceDeploymentInfo.cs
- BufferAllocator.cs
- QualifiedCellIdBoolean.cs
- ContextItem.cs
- Stackframe.cs
- TextPatternIdentifiers.cs
- CodeDirectiveCollection.cs
- OneWayChannelListener.cs
- InstanceDescriptor.cs
- RTLAwareMessageBox.cs
- TextEditorCharacters.cs
- CodeLabeledStatement.cs
- ClientTargetSection.cs
- XmlWrappingReader.cs
- GroupLabel.cs
- ListBoxItem.cs
- ResourceDescriptionAttribute.cs
- InvokeHandlers.cs
- SocketSettings.cs
- SelectorItemAutomationPeer.cs
- FontStretch.cs
- CompiledXpathExpr.cs
- XmlSchemaInferenceException.cs
- WmpBitmapDecoder.cs
- SafeLocalAllocation.cs
- DefaultTextStore.cs
- MimeXmlImporter.cs
- TypeConverterHelper.cs
- Attributes.cs
- HotCommands.cs
- DropShadowEffect.cs
- TdsParserSafeHandles.cs
- GuidelineSet.cs
- SchemaType.cs
- Label.cs
- ExpressionBuilder.cs
- CookieProtection.cs
- SharedHttpTransportManager.cs
- BreadCrumbTextConverter.cs
- Menu.cs
- UseManagedPresentationBindingElementImporter.cs
- Operand.cs
- DataSourceProvider.cs
- ConfigXmlText.cs
- EventDescriptor.cs
- ErrorStyle.cs
- PageHandlerFactory.cs
- PreviewControlDesigner.cs
- ListViewDeleteEventArgs.cs
- TextServicesCompartment.cs
- SystemColors.cs
- DynamicValueConverter.cs
- Model3D.cs
- LogicalCallContext.cs
- DesigntimeLicenseContext.cs
- XmlTextReaderImplHelpers.cs
- TableLayoutStyleCollection.cs
- FlowDocumentPage.cs
- StylusTouchDevice.cs
- AsyncCallback.cs
- ErrorCodes.cs
- DecoderFallback.cs
- CodeDirectiveCollection.cs