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
- Crc32Helper.cs
- TargetPerspective.cs
- StandardCommandToolStripMenuItem.cs
- HostedTcpTransportManager.cs
- ProfileServiceManager.cs
- EventMap.cs
- Int32EqualityComparer.cs
- PowerModeChangedEventArgs.cs
- TextTreeTextNode.cs
- DocumentOrderQuery.cs
- StreamReader.cs
- TrustManagerPromptUI.cs
- ProviderBase.cs
- SkewTransform.cs
- PeerReferralPolicy.cs
- XmlTypeMapping.cs
- DBSqlParserColumn.cs
- StylusDevice.cs
- GridViewAutomationPeer.cs
- XpsFilter.cs
- InvalidCastException.cs
- DbConnectionInternal.cs
- PipeSecurity.cs
- FixedLineResult.cs
- RSAOAEPKeyExchangeDeformatter.cs
- MultitargetUtil.cs
- SendKeys.cs
- TemplateKey.cs
- EditCommandColumn.cs
- StatusBarAutomationPeer.cs
- X509Utils.cs
- Rect.cs
- UnsafeNativeMethods.cs
- DataGridViewComboBoxCell.cs
- WindowInteractionStateTracker.cs
- DescendantBaseQuery.cs
- XMLDiffLoader.cs
- HostSecurityManager.cs
- DocumentXPathNavigator.cs
- RefreshPropertiesAttribute.cs
- BitConverter.cs
- OleDbEnumerator.cs
- BitmapSourceSafeMILHandle.cs
- MarkupExtensionSerializer.cs
- RowCache.cs
- RegexRunner.cs
- ArgumentOutOfRangeException.cs
- AsyncOperation.cs
- httpserverutility.cs
- RectangleF.cs
- ListViewItemEventArgs.cs
- DesignerActionHeaderItem.cs
- OutputWindow.cs
- SchemaObjectWriter.cs
- TaiwanLunisolarCalendar.cs
- FrameworkElement.cs
- RadioButtonBaseAdapter.cs
- DataBoundControlDesigner.cs
- AmbientValueAttribute.cs
- SqlSelectClauseBuilder.cs
- Typography.cs
- LambdaCompiler.Generated.cs
- CodeDirectoryCompiler.cs
- ForceCopyBuildProvider.cs
- Transform3D.cs
- storepermission.cs
- TextServicesCompartmentContext.cs
- ElementAction.cs
- XmlSerializer.cs
- OleDbCommandBuilder.cs
- PropertyItem.cs
- ProcessingInstructionAction.cs
- FixedSOMImage.cs
- HttpListenerResponse.cs
- CommentAction.cs
- RuleConditionDialog.cs
- ArrayElementGridEntry.cs
- UnknownWrapper.cs
- DeclaredTypeElement.cs
- StagingAreaInputItem.cs
- ToolStripRenderEventArgs.cs
- WebContext.cs
- PropertyInfo.cs
- LogicalTreeHelper.cs
- ISAPIApplicationHost.cs
- XamlSerializerUtil.cs
- PrtCap_Public.cs
- SqlCommandBuilder.cs
- AvTrace.cs
- ItemsChangedEventArgs.cs
- ChangeDirector.cs
- GridViewRowEventArgs.cs
- StylusDownEventArgs.cs
- SortedList.cs
- ResourceSet.cs
- DragDeltaEventArgs.cs
- UniqueIdentifierService.cs
- MeasureData.cs
- Crypto.cs
- ReflectTypeDescriptionProvider.cs