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
- NoResizeSelectionBorderGlyph.cs
- TypeExtensionConverter.cs
- CaseInsensitiveComparer.cs
- SpeakCompletedEventArgs.cs
- ICspAsymmetricAlgorithm.cs
- ImageListUtils.cs
- GenericPrincipal.cs
- SHA1.cs
- UnknownBitmapEncoder.cs
- ListCollectionView.cs
- XslTransformFileEditor.cs
- DataBindingCollection.cs
- NativeMethods.cs
- WorkflowOperationBehavior.cs
- HttpDebugHandler.cs
- IIS7WorkerRequest.cs
- Header.cs
- StorageConditionPropertyMapping.cs
- MethodMessage.cs
- SingleSelectRootGridEntry.cs
- DispatchOperation.cs
- ContractMapping.cs
- Int64AnimationUsingKeyFrames.cs
- XmlDomTextWriter.cs
- RoutedUICommand.cs
- StructuredTypeEmitter.cs
- DelimitedListTraceListener.cs
- RefType.cs
- SQLSingle.cs
- VBCodeProvider.cs
- WindowsAltTab.cs
- KeyEventArgs.cs
- XmlAnyElementAttribute.cs
- FactoryMaker.cs
- DataGridViewCheckBoxColumn.cs
- CombinedGeometry.cs
- SecurityContextTokenCache.cs
- SchemaImporterExtensionsSection.cs
- Literal.cs
- SqlUDTStorage.cs
- SqlResolver.cs
- DataSourceProvider.cs
- UidManager.cs
- COM2PictureConverter.cs
- ShapingEngine.cs
- StackOverflowException.cs
- GregorianCalendar.cs
- ProcessModuleCollection.cs
- ContentControl.cs
- KeyGestureValueSerializer.cs
- RIPEMD160Managed.cs
- TempEnvironment.cs
- UInt16.cs
- ButtonPopupAdapter.cs
- ConnectAlgorithms.cs
- ObjectContext.cs
- Accessible.cs
- SQLChars.cs
- InstallHelper.cs
- MultiBindingExpression.cs
- JsonWriter.cs
- COM2ExtendedBrowsingHandler.cs
- SelectedGridItemChangedEvent.cs
- OuterGlowBitmapEffect.cs
- FileLevelControlBuilderAttribute.cs
- ComplexTypeEmitter.cs
- CodeExporter.cs
- MergePropertyDescriptor.cs
- ParallelQuery.cs
- SelectedGridItemChangedEvent.cs
- CollectionEditVerbManager.cs
- ValidatorCollection.cs
- SamlAuthenticationClaimResource.cs
- CompoundFileReference.cs
- UnsafeNetInfoNativeMethods.cs
- TextContainer.cs
- ApplicationFileParser.cs
- OutgoingWebRequestContext.cs
- ObjectQuery_EntitySqlExtensions.cs
- HtmlInputButton.cs
- CallbackValidatorAttribute.cs
- GradientStop.cs
- GuidelineCollection.cs
- FormsAuthentication.cs
- MethodBuilder.cs
- ErrorProvider.cs
- ActivityExecutionContext.cs
- OptimizerPatterns.cs
- GroupDescription.cs
- OleAutBinder.cs
- _LazyAsyncResult.cs
- HtmlAnchor.cs
- DataServiceBuildProvider.cs
- DrawListViewSubItemEventArgs.cs
- TextServicesProperty.cs
- ScrollContentPresenter.cs
- BindingListCollectionView.cs
- SessionStateModule.cs
- StylusPointDescription.cs
- SQLSingleStorage.cs