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
- DWriteFactory.cs
- FloatMinMaxAggregationOperator.cs
- ToggleButton.cs
- AbandonedMutexException.cs
- CacheEntry.cs
- WindowsTokenRoleProvider.cs
- XmlSchemaFacet.cs
- TextLineResult.cs
- ParameterElementCollection.cs
- ExecutionContext.cs
- XmlCollation.cs
- FontDialog.cs
- SqlDataSourceFilteringEventArgs.cs
- ChameleonKey.cs
- Quaternion.cs
- ValueUtilsSmi.cs
- ReadWriteObjectLock.cs
- EnumValidator.cs
- SessionStateUtil.cs
- ValidationContext.cs
- MappingSource.cs
- WebPart.cs
- TemplatePropertyEntry.cs
- DetailsViewCommandEventArgs.cs
- SByte.cs
- LocationEnvironment.cs
- CoTaskMemSafeHandle.cs
- CodeGroup.cs
- StyleReferenceConverter.cs
- CaretElement.cs
- XmlConvert.cs
- WindowClosedEventArgs.cs
- DataBoundControlDesigner.cs
- ToolStripDropDownClosedEventArgs.cs
- SequenceDesigner.cs
- EntityContainerEntitySet.cs
- StringDictionary.cs
- XmlResolver.cs
- DeferredElementTreeState.cs
- ParallelTimeline.cs
- DbDataRecord.cs
- AudioFileOut.cs
- KoreanLunisolarCalendar.cs
- CompoundFileStreamReference.cs
- NavigationWindow.cs
- AppModelKnownContentFactory.cs
- IndexingContentUnit.cs
- KeyValueConfigurationCollection.cs
- AutomationAttributeInfo.cs
- XmlSchemaSimpleTypeList.cs
- TableLayoutColumnStyleCollection.cs
- SyndicationDeserializer.cs
- WebPartHelpVerb.cs
- DesignerDataStoredProcedure.cs
- AttributeProviderAttribute.cs
- DeploymentSectionCache.cs
- Timer.cs
- listitem.cs
- Sentence.cs
- InputLanguageProfileNotifySink.cs
- SynchronizingStream.cs
- XmlObjectSerializer.cs
- ScrollChrome.cs
- StateBag.cs
- _SingleItemRequestCache.cs
- Suspend.cs
- ChannelCredentials.cs
- GetWorkflowTree.cs
- ReachVisualSerializerAsync.cs
- DesignerContextDescriptor.cs
- CompilationUtil.cs
- InstanceOwner.cs
- OptimisticConcurrencyException.cs
- WebPartDisplayMode.cs
- StringDictionaryWithComparer.cs
- WCFBuildProvider.cs
- CodeDefaultValueExpression.cs
- securestring.cs
- HttpEncoderUtility.cs
- AssemblyCacheEntry.cs
- List.cs
- LayoutDump.cs
- GorillaCodec.cs
- WindowsFormsHelpers.cs
- PrePostDescendentsWalker.cs
- ListItemCollection.cs
- Help.cs
- UntrustedRecipientException.cs
- StyleBamlRecordReader.cs
- SingleObjectCollection.cs
- FilterableAttribute.cs
- ApplicationException.cs
- SqlAggregateChecker.cs
- ProfileParameter.cs
- NeedSkipTokenVisitor.cs
- SaveFileDialog.cs
- SettingsPropertyValue.cs
- DataFormats.cs
- DataGridViewCell.cs
- BuildProviderCollection.cs