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
- Point3DCollectionConverter.cs
- ColorMatrix.cs
- HttpRequestBase.cs
- SignHashRequest.cs
- figurelength.cs
- HandleTable.cs
- WebPartAddingEventArgs.cs
- DispatchWrapper.cs
- EntryPointNotFoundException.cs
- RoleGroupCollection.cs
- AttachInfo.cs
- DataSet.cs
- IndexedString.cs
- WriteTimeStream.cs
- MouseButton.cs
- DocumentApplication.cs
- AsymmetricKeyExchangeDeformatter.cs
- FolderBrowserDialog.cs
- MetadataItem_Static.cs
- EventWaitHandle.cs
- CollectionView.cs
- Nullable.cs
- ColumnResult.cs
- ByteStreamMessageEncoder.cs
- ObjectIDGenerator.cs
- NotSupportedException.cs
- DriveInfo.cs
- OuterGlowBitmapEffect.cs
- DataContractSet.cs
- RawUIStateInputReport.cs
- InputManager.cs
- ListDictionaryInternal.cs
- TypeBuilderInstantiation.cs
- Action.cs
- AttachmentCollection.cs
- CodeFieldReferenceExpression.cs
- Perspective.cs
- Properties.cs
- InstanceCollisionException.cs
- Atom10FormatterFactory.cs
- SizeAnimationClockResource.cs
- SmtpNetworkElement.cs
- NavigationPropertyEmitter.cs
- VScrollProperties.cs
- TimeSpan.cs
- CopyNodeSetAction.cs
- OleDbCommandBuilder.cs
- EventLogConfiguration.cs
- PlatformNotSupportedException.cs
- XPathEmptyIterator.cs
- SoapFault.cs
- TextCompositionManager.cs
- PropertyRecord.cs
- MobileListItem.cs
- DockingAttribute.cs
- ConnectionManagementElementCollection.cs
- assertwrapper.cs
- SafeThemeHandle.cs
- CodeArrayIndexerExpression.cs
- TileBrush.cs
- ResourcePool.cs
- CodeTypeParameter.cs
- bindurihelper.cs
- WsatServiceAddress.cs
- SuppressedPackageProperties.cs
- SerializationStore.cs
- TransportSecurityHelpers.cs
- QueryOutputWriter.cs
- SafeNativeMethodsOther.cs
- OleDbRowUpdatedEvent.cs
- ImageBrush.cs
- SystemIPInterfaceProperties.cs
- SafeFindHandle.cs
- DetailsViewDeletedEventArgs.cs
- BitmapEffectGroup.cs
- JpegBitmapEncoder.cs
- QuadraticBezierSegment.cs
- ArgumentException.cs
- SqlCommandSet.cs
- HttpFileCollectionBase.cs
- CursorConverter.cs
- OleDbDataAdapter.cs
- DictionaryChange.cs
- CancelEventArgs.cs
- OptimizerPatterns.cs
- WebPartTransformerAttribute.cs
- EventSetter.cs
- DataServiceResponse.cs
- MemberAccessException.cs
- Int32Animation.cs
- PolygonHotSpot.cs
- ParenthesizePropertyNameAttribute.cs
- StoreItemCollection.cs
- CommandExpr.cs
- ResXFileRef.cs
- RuleProcessor.cs
- TreeViewBindingsEditor.cs
- AnnotationMap.cs
- WaveHeader.cs
- Parameter.cs