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
- WindowsSlider.cs
- MetadataWorkspace.cs
- ProcessHostConfigUtils.cs
- ProjectionCamera.cs
- CapabilitiesPattern.cs
- Select.cs
- SessionEndingEventArgs.cs
- ToolbarAUtomationPeer.cs
- TraceInternal.cs
- CfgSemanticTag.cs
- SqlPersonalizationProvider.cs
- GenericsInstances.cs
- ScriptingJsonSerializationSection.cs
- WebProxyScriptElement.cs
- WebSysDisplayNameAttribute.cs
- NameValuePair.cs
- ipaddressinformationcollection.cs
- OleDbTransaction.cs
- XmlConvert.cs
- XmlHierarchicalEnumerable.cs
- ZoneLinkButton.cs
- InternalsVisibleToAttribute.cs
- OracleConnectionStringBuilder.cs
- Int32EqualityComparer.cs
- EventEntry.cs
- DataBoundControlHelper.cs
- ModuleConfigurationInfo.cs
- DataGridViewElement.cs
- ApplicationActivator.cs
- StandardOleMarshalObject.cs
- CodeDirectionExpression.cs
- RootBrowserWindow.cs
- FileRegion.cs
- HttpFileCollectionBase.cs
- WebDescriptionAttribute.cs
- FilterQuery.cs
- PerformanceCounterPermission.cs
- Empty.cs
- ExtensionDataReader.cs
- EndpointIdentityExtension.cs
- FontStretchConverter.cs
- FixedSOMFixedBlock.cs
- HttpFileCollection.cs
- WsdlBuildProvider.cs
- MetaChildrenColumn.cs
- SyncOperationState.cs
- TrackingProfileCache.cs
- IisNotInstalledException.cs
- OleDbStruct.cs
- MetafileHeaderWmf.cs
- RelationshipConstraintValidator.cs
- SmtpNtlmAuthenticationModule.cs
- InheritanceRules.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- RepeaterItemCollection.cs
- RemotingSurrogateSelector.cs
- MultiBindingExpression.cs
- HostingEnvironment.cs
- Selector.cs
- ValueType.cs
- coordinatorscratchpad.cs
- TrustLevelCollection.cs
- ClientTargetCollection.cs
- CodeMethodReturnStatement.cs
- TextEditor.cs
- RegexGroupCollection.cs
- QueryOptionExpression.cs
- XmlDataSourceView.cs
- ButtonFlatAdapter.cs
- ToolStripComboBox.cs
- HostingEnvironment.cs
- AlternationConverter.cs
- LinkedList.cs
- EntityDataSourceWizardForm.cs
- SecurityTokenException.cs
- LinqDataSourceHelper.cs
- FacetDescriptionElement.cs
- DataObjectCopyingEventArgs.cs
- SelectionWordBreaker.cs
- assemblycache.cs
- RSAOAEPKeyExchangeFormatter.cs
- TypeViewSchema.cs
- SingleAnimation.cs
- TransformerInfoCollection.cs
- NotifyParentPropertyAttribute.cs
- sqlinternaltransaction.cs
- InstalledFontCollection.cs
- HttpResponseHeader.cs
- Viewport3DAutomationPeer.cs
- IIS7UserPrincipal.cs
- Types.cs
- Timeline.cs
- ClientSideProviderDescription.cs
- Timer.cs
- SHA1CryptoServiceProvider.cs
- TextRenderingModeValidation.cs
- OpCodes.cs
- BuilderPropertyEntry.cs
- ExecutionEngineException.cs
- OracleMonthSpan.cs