Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WebForms / System / Web / UI / Design / DataSetViewSchema.cs / 1 / DataSetViewSchema.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.Design { using System.Data; ////// public sealed class DataSetViewSchema : IDataSourceViewSchema { private DataTable _dataTable; public DataSetViewSchema(DataTable dataTable) { if (dataTable == null) { throw new ArgumentNullException("dataTable"); } _dataTable = dataTable; } ////// Provides schema information for a single data source view. This schema information is used at /// at designtime to make decisions about what views should be shown in the /// DataMember picker. /// ////// Returns the name of the view. This name should match the name returned by the runtime method GetViewNames. /// public string Name { get { return _dataTable.TableName; } } ////// Returns an array of IDataSourceViewSchema objects that represent the child views contained in the current view. /// public IDataSourceViewSchema[] GetChildren() { return null; // todo: implement for hierarchy } ////// Returns an array of IDataSourceFieldSchema objects that represent the fields contained in the view. /// public IDataSourceFieldSchema[] GetFields() { System.Collections.Generic.ListfieldSchemas = new System.Collections.Generic.List (); foreach (DataColumn c in _dataTable.Columns) { if (c.ColumnMapping != MappingType.Hidden) { fieldSchemas.Add(new DataSetFieldSchema(c)); } } return fieldSchemas.ToArray(); } } } // 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
- TypeUtil.cs
- ValueProviderWrapper.cs
- SqlBuilder.cs
- DbConnectionOptions.cs
- EpmSourcePathSegment.cs
- XmlRootAttribute.cs
- ObjectViewFactory.cs
- WinFormsSecurity.cs
- KnownTypesHelper.cs
- Slider.cs
- DetailsViewPagerRow.cs
- TextBoxDesigner.cs
- DateTimeFormatInfoScanner.cs
- Errors.cs
- UInt64.cs
- ConstraintCollection.cs
- TabPage.cs
- ObjectManager.cs
- OptimalBreakSession.cs
- FixedPage.cs
- InlineCollection.cs
- SqlNotificationEventArgs.cs
- TypeConverter.cs
- DataControlReference.cs
- MissingManifestResourceException.cs
- DataGridTableCollection.cs
- GradientBrush.cs
- CodeGroup.cs
- Geometry3D.cs
- TableLayoutPanelCellPosition.cs
- SessionPageStatePersister.cs
- XsltCompileContext.cs
- TreeViewCancelEvent.cs
- DesignerCalendarAdapter.cs
- DataContract.cs
- ActiveDocumentEvent.cs
- ProviderConnectionPoint.cs
- ReturnEventArgs.cs
- LockedHandleGlyph.cs
- SortQuery.cs
- Point3DCollectionConverter.cs
- SelectionPattern.cs
- LocalizableResourceBuilder.cs
- VisualBrush.cs
- XmlElementAttributes.cs
- LabelInfo.cs
- StylusPlugin.cs
- PlatformCulture.cs
- FatalException.cs
- DbBuffer.cs
- ResizeGrip.cs
- RealProxy.cs
- PropertyGeneratedEventArgs.cs
- ScrollData.cs
- Stack.cs
- HwndMouseInputProvider.cs
- LockCookie.cs
- ExtensionFile.cs
- MsmqIntegrationBindingElement.cs
- ExtentCqlBlock.cs
- MethodSignatureGenerator.cs
- RegexInterpreter.cs
- SmtpNetworkElement.cs
- MemberAssignment.cs
- CoreSwitches.cs
- XmlDictionary.cs
- GridView.cs
- SqlDataSourceCommandEventArgs.cs
- XmlSchemaGroupRef.cs
- IPPacketInformation.cs
- DPCustomTypeDescriptor.cs
- StylusPointCollection.cs
- SqlConnectionHelper.cs
- WinEventHandler.cs
- AppDomainInstanceProvider.cs
- XmlIlVisitor.cs
- SetStoryboardSpeedRatio.cs
- DataSourceView.cs
- HttpCachePolicyElement.cs
- NativeCompoundFileAPIs.cs
- StringHelper.cs
- StringPropertyBuilder.cs
- PolyBezierSegment.cs
- Transform3DGroup.cs
- SQLSingle.cs
- EventMappingSettings.cs
- RepeaterItem.cs
- GeneratedCodeAttribute.cs
- InternalConfigRoot.cs
- EditorPartChrome.cs
- PolygonHotSpot.cs
- OletxVolatileEnlistment.cs
- MatrixAnimationUsingKeyFrames.cs
- MouseOverProperty.cs
- RectangleGeometry.cs
- SerialPort.cs
- UndoUnit.cs
- SmiSettersStream.cs
- CodeIndexerExpression.cs
- DataGridTextBox.cs