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
- DtdParser.cs
- PublisherMembershipCondition.cs
- ExpanderAutomationPeer.cs
- PlacementWorkspace.cs
- CacheAxisQuery.cs
- HttpModuleActionCollection.cs
- VirtualDirectoryMappingCollection.cs
- StringConverter.cs
- RootBuilder.cs
- CompiledIdentityConstraint.cs
- ApplicationDirectory.cs
- StructuredProperty.cs
- BooleanFacetDescriptionElement.cs
- XPathNavigatorKeyComparer.cs
- BinHexEncoding.cs
- Label.cs
- TemplateContainer.cs
- ResXFileRef.cs
- RedirectionProxy.cs
- InheritanceContextChangedEventManager.cs
- TabItem.cs
- PersonalizationDictionary.cs
- TaskFormBase.cs
- Collection.cs
- ImportCatalogPart.cs
- ToolStripContentPanel.cs
- AuthenticationManager.cs
- ToolStripItemCollection.cs
- GestureRecognizer.cs
- FlowDocumentFormatter.cs
- DocobjHost.cs
- ProfileBuildProvider.cs
- EntityDesignerBuildProvider.cs
- TextRangeAdaptor.cs
- PowerModeChangedEventArgs.cs
- PolyQuadraticBezierSegment.cs
- RawStylusInputCustomDataList.cs
- WebPartConnectionCollection.cs
- SequentialUshortCollection.cs
- DataListAutoFormat.cs
- MethodAccessException.cs
- CheckBoxBaseAdapter.cs
- ServiceInstanceProvider.cs
- DuplexChannelBinder.cs
- XPathQilFactory.cs
- MethodBuilder.cs
- XmlUtilWriter.cs
- WebPartMinimizeVerb.cs
- RegistryKey.cs
- ProfileSettingsCollection.cs
- InitializationEventAttribute.cs
- XmlSchemaSequence.cs
- OdbcEnvironmentHandle.cs
- GridPattern.cs
- XmlArrayItemAttributes.cs
- SplitterPanel.cs
- DataGridViewColumnConverter.cs
- IsolationInterop.cs
- InputMethod.cs
- SafeProcessHandle.cs
- VersionPair.cs
- WindowsFormsSectionHandler.cs
- DesignTimeHTMLTextWriter.cs
- TextAnchor.cs
- Rotation3DAnimation.cs
- DefaultAuthorizationContext.cs
- DataRowView.cs
- DataSysAttribute.cs
- NativeActivity.cs
- ListItemCollection.cs
- WebPartEditVerb.cs
- PathStreamGeometryContext.cs
- Content.cs
- ServiceReference.cs
- ProfileModule.cs
- FrameworkElementFactory.cs
- ProfilePropertySettings.cs
- HtmlTableRowCollection.cs
- BinaryObjectReader.cs
- CryptoKeySecurity.cs
- BitmapPalettes.cs
- SimplePropertyEntry.cs
- GetPageCompletedEventArgs.cs
- HtmlToClrEventProxy.cs
- DesignColumn.cs
- Missing.cs
- NullableConverter.cs
- ApplicationCommands.cs
- BaseUriHelper.cs
- _Win32.cs
- SplineKeyFrames.cs
- ObjectKeyFrameCollection.cs
- ExpressionVisitorHelpers.cs
- Sequence.cs
- CollectionChangedEventManager.cs
- Range.cs
- EditorZoneBase.cs
- Int32Rect.cs
- FigureHelper.cs
- NestPullup.cs