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
- DataRelationCollection.cs
- CodeEntryPointMethod.cs
- IgnoreSection.cs
- RegexParser.cs
- ConfigurationSectionGroup.cs
- AppDomainAttributes.cs
- InkCanvasInnerCanvas.cs
- NamedPipeAppDomainProtocolHandler.cs
- Baml2006SchemaContext.cs
- RayMeshGeometry3DHitTestResult.cs
- XmlAnyElementAttributes.cs
- CodeMemberEvent.cs
- SQLBoolean.cs
- XmlDigitalSignatureProcessor.cs
- ExpandoClass.cs
- EntityDataSource.cs
- Selection.cs
- ToolZoneDesigner.cs
- ConfigXmlSignificantWhitespace.cs
- SafeMILHandle.cs
- FunctionParameter.cs
- DesignerRegionMouseEventArgs.cs
- HostExecutionContextManager.cs
- LogExtentCollection.cs
- SqlUserDefinedTypeAttribute.cs
- NativeMethods.cs
- PtsContext.cs
- TemplateXamlParser.cs
- FontSourceCollection.cs
- Interlocked.cs
- List.cs
- WebEvents.cs
- IntSecurity.cs
- CssStyleCollection.cs
- StringDictionaryWithComparer.cs
- HtmlEmptyTagControlBuilder.cs
- ToolStripPanelDesigner.cs
- Ref.cs
- COMException.cs
- MessageLoggingFilterTraceRecord.cs
- Fx.cs
- TextEditorParagraphs.cs
- Rect.cs
- CompilerParameters.cs
- NamedElement.cs
- InputBinding.cs
- FlowDocumentPageViewerAutomationPeer.cs
- FreezableDefaultValueFactory.cs
- DomNameTable.cs
- XsltLoader.cs
- _Win32.cs
- SqlFactory.cs
- RequestCachingSection.cs
- AsymmetricKeyExchangeFormatter.cs
- PropertyNames.cs
- _MultipleConnectAsync.cs
- DataList.cs
- AxisAngleRotation3D.cs
- HTMLTagNameToTypeMapper.cs
- TableLayoutPanelDesigner.cs
- _KerberosClient.cs
- WindowsListViewItemStartMenu.cs
- AllMembershipCondition.cs
- XNodeValidator.cs
- ChangePasswordDesigner.cs
- SpellerStatusTable.cs
- XamlDesignerSerializationManager.cs
- TraceHandler.cs
- BitmapMetadataBlob.cs
- DefaultProfileManager.cs
- HttpCacheVary.cs
- Function.cs
- RedirectionProxy.cs
- DBConnection.cs
- ExpressionBuilder.cs
- DoubleAnimationUsingPath.cs
- BufferedGraphics.cs
- DataBindEngine.cs
- figurelength.cs
- BooleanToVisibilityConverter.cs
- ProviderConnectionPoint.cs
- HostingEnvironmentSection.cs
- WebPartEditorApplyVerb.cs
- SendingRequestEventArgs.cs
- InputReportEventArgs.cs
- DataControlFieldCell.cs
- Cursor.cs
- HandleDictionary.cs
- QilReplaceVisitor.cs
- TdsParserHelperClasses.cs
- XamlSerializerUtil.cs
- CodeGen.cs
- FreezableCollection.cs
- ParameterModifier.cs
- DataGridViewColumnHeaderCell.cs
- BitmapDecoder.cs
- KeyBinding.cs
- ConnectionPointConverter.cs
- LocatorGroup.cs
- SafeNativeMethods.cs