Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / DynamicData / DynamicData / ContextConfiguration.cs / 1305376 / ContextConfiguration.cs
using System.Collections.Generic; using System.Security.Permissions; using System.Diagnostics.CodeAnalysis; using System.ComponentModel.DataAnnotations; using System.ComponentModel; using System.Web.DynamicData.ModelProviders; namespace System.Web.DynamicData { ////// Allows for providing extra config information to a context /// public class ContextConfiguration { ////// An optional factory for obtaining a metadata source for a given entity type /// public FuncMetadataProviderFactory { get; set; } /// /// scaffold all tables /// public bool ScaffoldAllTables { get; set; } ////// ctor /// [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly", Justification = "This can be set by the user to support inline dictionary intializers")] public ContextConfiguration() { MetadataProviderFactory = type => new AssociatedMetadataTypeTypeDescriptionProvider(type); } } } // 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
- ReflectTypeDescriptionProvider.cs
- Point4D.cs
- SQLBytes.cs
- AddInDeploymentState.cs
- FollowerQueueCreator.cs
- RequestStatusBarUpdateEventArgs.cs
- WebPartAuthorizationEventArgs.cs
- TextRunCache.cs
- EditorPart.cs
- MeasureItemEvent.cs
- EndpointAddressProcessor.cs
- FreeFormDesigner.cs
- PathFigure.cs
- RequestCacheEntry.cs
- ReferenceEqualityComparer.cs
- EntityProxyFactory.cs
- XmlDocument.cs
- shaperfactoryquerycacheentry.cs
- Rotation3D.cs
- AppLevelCompilationSectionCache.cs
- DataListCommandEventArgs.cs
- UTF7Encoding.cs
- SqlCacheDependency.cs
- DetailsViewCommandEventArgs.cs
- ExternalFile.cs
- SoapInteropTypes.cs
- PeerName.cs
- ObjectIDGenerator.cs
- FixUpCollection.cs
- DynamicActivityProperty.cs
- ProxyElement.cs
- ButtonBase.cs
- WorkflowTimerService.cs
- LeafCellTreeNode.cs
- errorpatternmatcher.cs
- MemoryFailPoint.cs
- ThemeInfoAttribute.cs
- UInt32.cs
- EventLogPermission.cs
- ResolveNameEventArgs.cs
- FileDataSourceCache.cs
- Win32KeyboardDevice.cs
- ZipIOExtraFieldElement.cs
- OrderingInfo.cs
- Int32Rect.cs
- SqlLiftIndependentRowExpressions.cs
- BaseValidator.cs
- webeventbuffer.cs
- OleDbDataAdapter.cs
- Point3DCollection.cs
- SafeProcessHandle.cs
- MetadataUtilsSmi.cs
- FormClosingEvent.cs
- PeerName.cs
- BufferBuilder.cs
- CustomWebEventKey.cs
- DatePicker.cs
- SqlNotificationRequest.cs
- TextRange.cs
- ImpersonateTokenRef.cs
- SpotLight.cs
- DesignerActionPanel.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- ListItemParagraph.cs
- TakeQueryOptionExpression.cs
- SingleTagSectionHandler.cs
- PageCatalogPart.cs
- ProjectedSlot.cs
- AutoGeneratedField.cs
- ControlEvent.cs
- DataStreamFromComStream.cs
- DataGridViewRowCancelEventArgs.cs
- StandardOleMarshalObject.cs
- NullableDoubleAverageAggregationOperator.cs
- IntegerValidator.cs
- SynchronizedInputAdaptor.cs
- Part.cs
- UInt16Storage.cs
- MonitoringDescriptionAttribute.cs
- CreateUserWizardStep.cs
- ConnectionManagementElementCollection.cs
- FormCollection.cs
- EntityDataSourceColumn.cs
- MultiPropertyDescriptorGridEntry.cs
- ObjectDataSourceMethodEventArgs.cs
- UIAgentInitializationException.cs
- DefaultValidator.cs
- WindowsListViewScroll.cs
- OAVariantLib.cs
- AtomEntry.cs
- IndexedGlyphRun.cs
- DateBoldEvent.cs
- MouseEventArgs.cs
- UpDownEvent.cs
- AppendHelper.cs
- PanelStyle.cs
- ToolStripItemTextRenderEventArgs.cs
- CanExecuteRoutedEventArgs.cs
- ImportedNamespaceContextItem.cs
- SpecialFolderEnumConverter.cs