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
- CellTreeNode.cs
- RectConverter.cs
- WindowsScrollBar.cs
- AnimatedTypeHelpers.cs
- AutoScrollExpandMessageFilter.cs
- DbProviderSpecificTypePropertyAttribute.cs
- Label.cs
- SortedList.cs
- DataAdapter.cs
- LinearGradientBrush.cs
- PasswordDeriveBytes.cs
- OptimizerPatterns.cs
- FieldNameLookup.cs
- FontClient.cs
- NameValueFileSectionHandler.cs
- SecurityKeyIdentifierClause.cs
- ObjectTag.cs
- CornerRadiusConverter.cs
- COM2EnumConverter.cs
- SqlCaseSimplifier.cs
- AppAction.cs
- ElementMarkupObject.cs
- TableAutomationPeer.cs
- Manipulation.cs
- milexports.cs
- TextPattern.cs
- TextTreeInsertElementUndoUnit.cs
- XmlIlGenerator.cs
- UpDownBase.cs
- DockAndAnchorLayout.cs
- FunctionMappingTranslator.cs
- CharacterShapingProperties.cs
- ProgressChangedEventArgs.cs
- CopyNamespacesAction.cs
- Cursor.cs
- WebPartConnectVerb.cs
- SqlBuffer.cs
- CompositeControl.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- HitTestWithPointDrawingContextWalker.cs
- ResourceManager.cs
- DataGridCaption.cs
- CommandManager.cs
- OleDbSchemaGuid.cs
- ProfileProvider.cs
- EventSinkActivityDesigner.cs
- HttpDigestClientElement.cs
- XmlAnyElementAttribute.cs
- DeviceSpecificDialogCachedState.cs
- CodeBinaryOperatorExpression.cs
- SecurityTokenParametersEnumerable.cs
- ArrayWithOffset.cs
- PhysicalAddress.cs
- RelatedCurrencyManager.cs
- ScriptControlManager.cs
- SrgsOneOf.cs
- XmlComment.cs
- SafeTokenHandle.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- TextChangedEventArgs.cs
- DateTimeUtil.cs
- ModulesEntry.cs
- SqlDataReader.cs
- XomlCompilerError.cs
- BlobPersonalizationState.cs
- RegexNode.cs
- TrackingRecordPreFilter.cs
- VerticalAlignConverter.cs
- StylusPointPropertyInfoDefaults.cs
- TextRangeEdit.cs
- SafeHGlobalHandleCritical.cs
- TdsParameterSetter.cs
- C14NUtil.cs
- BindingValueChangedEventArgs.cs
- StateWorkerRequest.cs
- RNGCryptoServiceProvider.cs
- InplaceBitmapMetadataWriter.cs
- PenContext.cs
- SourceLineInfo.cs
- DesignerRegion.cs
- Vector3D.cs
- XsltInput.cs
- SHA384.cs
- SupportingTokenAuthenticatorSpecification.cs
- UIntPtr.cs
- securestring.cs
- TimelineGroup.cs
- ReadOnlyHierarchicalDataSourceView.cs
- MediaContextNotificationWindow.cs
- EtwTrace.cs
- DBDataPermission.cs
- TagPrefixAttribute.cs
- webeventbuffer.cs
- BufferedStream.cs
- DllHostInitializer.cs
- WebPartDisplayModeCollection.cs
- HostedHttpTransportManager.cs
- URLMembershipCondition.cs
- DataGridViewUtilities.cs
- TraceHandlerErrorFormatter.cs