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
- SystemNetworkInterface.cs
- CharEntityEncoderFallback.cs
- PolicyValidationException.cs
- MediaTimeline.cs
- formatter.cs
- ClientSideQueueItem.cs
- WebServiceFault.cs
- DataBoundControlHelper.cs
- Cursor.cs
- WeakReference.cs
- ClientCredentials.cs
- Vector3DCollectionConverter.cs
- xmlfixedPageInfo.cs
- EntityCommandDefinition.cs
- PropertyChangeTracker.cs
- Assert.cs
- TrustManager.cs
- XamlSerializer.cs
- PointValueSerializer.cs
- xmlformatgeneratorstatics.cs
- StatusBarAutomationPeer.cs
- ServiceChannelFactory.cs
- Buffer.cs
- FrameworkPropertyMetadata.cs
- SecurityException.cs
- BaseCollection.cs
- MinMaxParagraphWidth.cs
- UICuesEvent.cs
- SQLBinaryStorage.cs
- DataGridViewRowPostPaintEventArgs.cs
- ProjectionCamera.cs
- RangeContentEnumerator.cs
- WebPartHeaderCloseVerb.cs
- IndentTextWriter.cs
- Path.cs
- ToolStripOverflow.cs
- PageBreakRecord.cs
- CellQuery.cs
- HtmlHead.cs
- HMACRIPEMD160.cs
- AddInEnvironment.cs
- ObjectParameterCollection.cs
- MemberNameValidator.cs
- ThousandthOfEmRealPoints.cs
- RC2CryptoServiceProvider.cs
- Merger.cs
- EventHandlerList.cs
- TemplateControlBuildProvider.cs
- EllipseGeometry.cs
- ReaderContextStackData.cs
- UriScheme.cs
- IgnoreFileBuildProvider.cs
- SequenceQuery.cs
- RectIndependentAnimationStorage.cs
- RequestQueryProcessor.cs
- Stack.cs
- LiteralLink.cs
- CapabilitiesSection.cs
- SHA256Cng.cs
- BamlMapTable.cs
- HttpDateParse.cs
- ContentPresenter.cs
- PeerApplicationLaunchInfo.cs
- AstTree.cs
- ParameterModifier.cs
- ColumnMapTranslator.cs
- Color.cs
- MSAAWinEventWrap.cs
- UrlAuthorizationModule.cs
- GeneralTransform3DTo2D.cs
- UdpUtility.cs
- MetadataPropertyCollection.cs
- PartManifestEntry.cs
- SQLInt16Storage.cs
- ReadOnlyTernaryTree.cs
- XmlWrappingReader.cs
- SqlTrackingQuery.cs
- PasswordRecovery.cs
- ApplicationBuildProvider.cs
- VScrollProperties.cs
- ScriptResourceAttribute.cs
- XmlQualifiedNameTest.cs
- RawStylusInputCustomDataList.cs
- ListBindableAttribute.cs
- FixedSOMLineRanges.cs
- FrameworkContentElement.cs
- XhtmlTextWriter.cs
- PropertyToken.cs
- SessionPageStateSection.cs
- UrlMappingsSection.cs
- WebConvert.cs
- CollectionChange.cs
- CodeAccessPermission.cs
- ExpressionNode.cs
- BrowserCapabilitiesCompiler.cs
- VirtualPathProvider.cs
- listitem.cs
- SeekStoryboard.cs
- OLEDB_Util.cs
- DataGridRow.cs