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
- DrawTreeNodeEventArgs.cs
- ValidateNames.cs
- ColorTranslator.cs
- SizeAnimationBase.cs
- ProtectedConfigurationSection.cs
- ProfileParameter.cs
- DataGridColumnCollection.cs
- VariableReference.cs
- DictionarySectionHandler.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- VariantWrapper.cs
- Propagator.Evaluator.cs
- IPGlobalProperties.cs
- CodeTypeReferenceExpression.cs
- DataGridPageChangedEventArgs.cs
- ClientBuildManager.cs
- AuthenticationModulesSection.cs
- SoapIgnoreAttribute.cs
- SchemaTypeEmitter.cs
- TraceContextEventArgs.cs
- XmlReflectionMember.cs
- MultipleViewProviderWrapper.cs
- BrowserDefinition.cs
- ClonableStack.cs
- CardSpacePolicyElement.cs
- _SecureChannel.cs
- ProfileServiceManager.cs
- ByteFacetDescriptionElement.cs
- HttpApplicationFactory.cs
- TypeBrowser.xaml.cs
- HostProtectionException.cs
- iisPickupDirectory.cs
- ToolboxDataAttribute.cs
- XamlGridLengthSerializer.cs
- ExceptionUtility.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- ExtenderHelpers.cs
- _AutoWebProxyScriptEngine.cs
- NegotiateStream.cs
- DynamicPhysicalDiscoSearcher.cs
- StylusPoint.cs
- SqlTrackingService.cs
- ManagedIStream.cs
- LockCookie.cs
- OrderingExpression.cs
- MgmtResManager.cs
- MergeFilterQuery.cs
- CounterNameConverter.cs
- MultiSelector.cs
- Material.cs
- BadImageFormatException.cs
- RecordBuilder.cs
- _ListenerRequestStream.cs
- ListViewDeletedEventArgs.cs
- XmlAttributeCollection.cs
- Int16KeyFrameCollection.cs
- Pair.cs
- WebControl.cs
- PagesChangedEventArgs.cs
- GatewayIPAddressInformationCollection.cs
- RenderCapability.cs
- GridLengthConverter.cs
- WpfSharedXamlSchemaContext.cs
- RecognizedWordUnit.cs
- CodeExporter.cs
- ScriptReference.cs
- SQLInt64Storage.cs
- SizeF.cs
- PathGeometry.cs
- RoutedEventConverter.cs
- PromptEventArgs.cs
- DrawingImage.cs
- IsolatedStorageFile.cs
- PackageDigitalSignature.cs
- CompilerError.cs
- Stackframe.cs
- XPathSelectionIterator.cs
- ToolStripPanelCell.cs
- FileDataSourceCache.cs
- Privilege.cs
- FormViewInsertedEventArgs.cs
- ReferenceTypeElement.cs
- OdbcDataAdapter.cs
- GeneralTransform2DTo3DTo2D.cs
- Composition.cs
- StorageAssociationTypeMapping.cs
- ISessionStateStore.cs
- ContentFileHelper.cs
- ManualResetEvent.cs
- ScriptMethodAttribute.cs
- MobileListItemCollection.cs
- SafeArrayRankMismatchException.cs
- WindowsToolbar.cs
- SafeSecurityHandles.cs
- Resources.Designer.cs
- TextTreeNode.cs
- Hyperlink.cs
- DesignerHierarchicalDataSourceView.cs
- ExceptionUtil.cs
- HtmlFormWrapper.cs