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
- AliasGenerator.cs
- TrustManagerPromptUI.cs
- HostAdapter.cs
- SqlClientWrapperSmiStreamChars.cs
- PartialList.cs
- ArraySegment.cs
- WindowInteropHelper.cs
- DataServicePagingProviderWrapper.cs
- XmlSchemaAny.cs
- SecurityDescriptor.cs
- SchemaObjectWriter.cs
- InkCanvasAutomationPeer.cs
- BypassElement.cs
- WebConfigurationManager.cs
- TypeReference.cs
- BuildManagerHost.cs
- HttpHeaderCollection.cs
- ScalarConstant.cs
- StreamResourceInfo.cs
- SymLanguageType.cs
- SqlDependency.cs
- MultipleViewPattern.cs
- IgnorePropertiesAttribute.cs
- CompositeTypefaceMetrics.cs
- SizeFConverter.cs
- OperationFormatter.cs
- WebPartDisplayModeCancelEventArgs.cs
- UniqueContractNameValidationBehavior.cs
- SingleAnimationUsingKeyFrames.cs
- BrowserCapabilitiesFactoryBase.cs
- PropertyPathWorker.cs
- TableCellAutomationPeer.cs
- AccessDataSourceView.cs
- SiteMapPath.cs
- XmlSchemaSimpleTypeUnion.cs
- Quaternion.cs
- LocationReference.cs
- TemplateComponentConnector.cs
- PeerNeighborManager.cs
- PopOutPanel.cs
- SHA1.cs
- EndPoint.cs
- WindowsIPAddress.cs
- SQLInt32.cs
- DataListItemCollection.cs
- X509CertificateCollection.cs
- UIElementPropertyUndoUnit.cs
- Asn1IntegerConverter.cs
- DeploymentExceptionMapper.cs
- ControlBindingsCollection.cs
- DateTimeSerializationSection.cs
- OdbcCommand.cs
- WebBaseEventKeyComparer.cs
- ClientCredentialsElement.cs
- NavigationWindow.cs
- SafeCertificateStore.cs
- MachineKeyConverter.cs
- CngKeyBlobFormat.cs
- Activity.cs
- PolyLineSegment.cs
- TdsParserSessionPool.cs
- OperatingSystemVersionCheck.cs
- WindowCollection.cs
- ZipIORawDataFileBlock.cs
- ConfigurationPermission.cs
- XmlDocumentSchema.cs
- TextEditorTables.cs
- FormParameter.cs
- RoutedEventConverter.cs
- ShimAsPublicXamlType.cs
- PropertyToken.cs
- OleAutBinder.cs
- BCryptSafeHandles.cs
- ProxyFragment.cs
- MasterPageBuildProvider.cs
- GACIdentityPermission.cs
- PackWebResponse.cs
- ExcCanonicalXml.cs
- HttpValueCollection.cs
- NumberFormatter.cs
- ProtocolsConfiguration.cs
- XmlSchemaInfo.cs
- BitmapFrameDecode.cs
- DirectoryInfo.cs
- Buffer.cs
- SmiEventSink_Default.cs
- AuthorizationContext.cs
- TreeViewImageKeyConverter.cs
- Events.cs
- SqlConnectionString.cs
- Claim.cs
- GroupBox.cs
- ResXResourceWriter.cs
- TimelineGroup.cs
- TdsParserStaticMethods.cs
- DelegatingTypeDescriptionProvider.cs
- UnsafeCollabNativeMethods.cs
- XMLSchema.cs
- SelfIssuedAuthProofToken.cs
- HyperlinkAutomationPeer.cs