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
- WorkflowDesignerMessageFilter.cs
- Preprocessor.cs
- DependencyPropertyConverter.cs
- CompensationTokenData.cs
- SettingsPropertyValueCollection.cs
- Configuration.cs
- Baml2006ReaderFrame.cs
- LocalTransaction.cs
- TdsParserStaticMethods.cs
- WebBrowserNavigatedEventHandler.cs
- GenericPrincipal.cs
- streamingZipPartStream.cs
- WorkflowServiceOperationListItem.cs
- CodeConstructor.cs
- JoinGraph.cs
- DelimitedListTraceListener.cs
- BitmapEffectDrawingContextWalker.cs
- basemetadatamappingvisitor.cs
- QueryContext.cs
- WindowsListViewScroll.cs
- SqlRecordBuffer.cs
- PropertyItem.cs
- SystemInformation.cs
- ColorAnimationUsingKeyFrames.cs
- Tokenizer.cs
- DataGridAutoFormatDialog.cs
- CollectionContainer.cs
- AssertValidation.cs
- Compress.cs
- HttpDictionary.cs
- XsltArgumentList.cs
- DesignerCatalogPartChrome.cs
- TimeSpanSecondsConverter.cs
- InvalidOperationException.cs
- RelationshipConstraintValidator.cs
- ObservableDictionary.cs
- ArcSegment.cs
- FileChangeNotifier.cs
- Drawing.cs
- BulletChrome.cs
- HostedElements.cs
- MessagePartDescriptionCollection.cs
- PeerContact.cs
- ToggleButton.cs
- DataServiceException.cs
- BackStopAuthenticationModule.cs
- TextEncodedRawTextWriter.cs
- SiteOfOriginPart.cs
- GroupByQueryOperator.cs
- SerialPinChanges.cs
- ItemType.cs
- DateTimeValueSerializerContext.cs
- ArgumentException.cs
- XsltContext.cs
- AudioFileOut.cs
- TextCharacters.cs
- SamlDoNotCacheCondition.cs
- DictationGrammar.cs
- PathFigureCollection.cs
- ETagAttribute.cs
- SkipQueryOptionExpression.cs
- FullTextLine.cs
- ConfigurationSectionGroup.cs
- MenuCommand.cs
- ControlAdapter.cs
- XmlSchemaIdentityConstraint.cs
- FloatSumAggregationOperator.cs
- HttpCacheVary.cs
- followingquery.cs
- X509CertificateInitiatorClientCredential.cs
- ElementsClipboardData.cs
- UpdatePanelTriggerCollection.cs
- NameSpaceExtractor.cs
- TypedReference.cs
- ObjectHelper.cs
- ArraySegment.cs
- RelationalExpressions.cs
- Rect3DValueSerializer.cs
- ColorContext.cs
- WindowsStreamSecurityElement.cs
- Int16AnimationUsingKeyFrames.cs
- AcceptorSessionSymmetricTransportSecurityProtocol.cs
- CodeAttributeArgument.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- SafeArrayTypeMismatchException.cs
- SystemMulticastIPAddressInformation.cs
- SubpageParaClient.cs
- CreateParams.cs
- AmbientProperties.cs
- SecurityTokenAttachmentMode.cs
- SafeMILHandle.cs
- TdsParserStateObject.cs
- TypeFieldSchema.cs
- HandlerFactoryCache.cs
- XmlSchemaExporter.cs
- ClientBase.cs
- followingquery.cs
- ColorAnimation.cs
- TreeNodeConverter.cs
- GuidelineCollection.cs