Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / DynamicData / DynamicData / ModelProviders / SimpleModelProvider.cs / 1305376 / SimpleModelProvider.cs
namespace System.Web.DynamicData.ModelProviders { using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Collections.ObjectModel; using System.ComponentModel; internal class SimpleDataModelProvider : DataModelProvider { private List_tables = new List (); public SimpleDataModelProvider(Type entityType) { _tables.Add(new SimpleTableProvider(this, entityType)); } public SimpleDataModelProvider(ICustomTypeDescriptor typeDescriptor) { _tables.Add(new SimpleTableProvider(this, typeDescriptor)); } public override ReadOnlyCollection Tables { get { return _tables.AsReadOnly(); } } public override object CreateContext() { throw new NotSupportedException(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. namespace System.Web.DynamicData.ModelProviders { using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Collections.ObjectModel; using System.ComponentModel; internal class SimpleDataModelProvider : DataModelProvider { private List _tables = new List (); public SimpleDataModelProvider(Type entityType) { _tables.Add(new SimpleTableProvider(this, entityType)); } public SimpleDataModelProvider(ICustomTypeDescriptor typeDescriptor) { _tables.Add(new SimpleTableProvider(this, typeDescriptor)); } public override ReadOnlyCollection Tables { get { return _tables.AsReadOnly(); } } public override object CreateContext() { throw new NotSupportedException(); } } } // 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
- SmiMetaData.cs
- MulticastNotSupportedException.cs
- VectorCollectionConverter.cs
- SerTrace.cs
- WindowsGraphics.cs
- StructuralCache.cs
- C14NUtil.cs
- ToolStripControlHost.cs
- HttpHandlerActionCollection.cs
- ParserOptions.cs
- _CommandStream.cs
- LongValidatorAttribute.cs
- HMACSHA384.cs
- Exceptions.cs
- AncestorChangedEventArgs.cs
- ByteAnimationUsingKeyFrames.cs
- ProcessModelSection.cs
- Profiler.cs
- HtmlWindowCollection.cs
- FormViewCommandEventArgs.cs
- Span.cs
- ProcessModule.cs
- ToolBar.cs
- CodeTypeMemberCollection.cs
- DetailsViewPagerRow.cs
- XmlSchemaParticle.cs
- ConfigXmlText.cs
- TransformerInfo.cs
- PropertyValidationContext.cs
- XamlSerializer.cs
- TextWriter.cs
- ConfigXmlSignificantWhitespace.cs
- DrawingAttributes.cs
- ScriptManager.cs
- ContainerControlDesigner.cs
- ToolConsole.cs
- StdValidatorsAndConverters.cs
- sqlstateclientmanager.cs
- CacheModeValueSerializer.cs
- ProcessModelSection.cs
- HttpModulesInstallComponent.cs
- Queue.cs
- ExpandSegmentCollection.cs
- RealProxy.cs
- SessionParameter.cs
- DataControlFieldsEditor.cs
- DocobjHost.cs
- RegexInterpreter.cs
- MetaColumn.cs
- ModelFactory.cs
- ObjectListCommandCollection.cs
- PathFigureCollectionValueSerializer.cs
- ArrayTypeMismatchException.cs
- SafeRegistryHandle.cs
- EffectiveValueEntry.cs
- _NetRes.cs
- SiteMapPath.cs
- TableCell.cs
- XmlSchemaSubstitutionGroup.cs
- RemotingSurrogateSelector.cs
- DesignerDataSourceView.cs
- NativeMethods.cs
- HashSet.cs
- ComEventsInfo.cs
- MetadataCache.cs
- GZipStream.cs
- XamlTypeMapper.cs
- XmlSchemaSequence.cs
- SQLInt16Storage.cs
- DLinqAssociationProvider.cs
- ImageSourceValueSerializer.cs
- BamlRecordReader.cs
- ExpressionCopier.cs
- KeysConverter.cs
- Cursors.cs
- DbProviderSpecificTypePropertyAttribute.cs
- DBParameter.cs
- MaskedTextBox.cs
- HierarchicalDataSourceDesigner.cs
- SplitContainerDesigner.cs
- COM2IManagedPerPropertyBrowsingHandler.cs
- DoubleAnimationBase.cs
- DataGridDetailsPresenter.cs
- PeerOutputChannel.cs
- FormsAuthenticationCredentials.cs
- EntityDataSourceQueryBuilder.cs
- IPipelineRuntime.cs
- ToolBarButton.cs
- HttpEncoder.cs
- DrawingAttributesDefaultValueFactory.cs
- ContentType.cs
- WebServiceData.cs
- _ChunkParse.cs
- TableLayoutPanelCodeDomSerializer.cs
- TypeFieldSchema.cs
- SqlDataSourceCustomCommandEditor.cs
- PermissionSetTriple.cs
- ApplicationFileCodeDomTreeGenerator.cs
- BoundField.cs
- HttpPostLocalhostServerProtocol.cs