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
- ComponentEditorPage.cs
- ISAPIRuntime.cs
- DbReferenceCollection.cs
- HitTestResult.cs
- RegistryDataKey.cs
- MexTcpBindingCollectionElement.cs
- CultureSpecificStringDictionary.cs
- MenuRendererStandards.cs
- Helper.cs
- GACMembershipCondition.cs
- SelectionPattern.cs
- InternalBufferOverflowException.cs
- recordstatefactory.cs
- Gdiplus.cs
- WindowsAuthenticationModule.cs
- ToolboxControl.cs
- XmlSchemaValidationException.cs
- DataStorage.cs
- HealthMonitoringSectionHelper.cs
- WpfGeneratedKnownProperties.cs
- AdornedElementPlaceholder.cs
- FileDialog_Vista_Interop.cs
- ComponentCollection.cs
- PtsPage.cs
- SqlInternalConnection.cs
- UnsafeNativeMethods.cs
- WebPartsSection.cs
- MemoryStream.cs
- WindowsRegion.cs
- WCFBuildProvider.cs
- BindingGraph.cs
- ModelVisual3D.cs
- BamlTreeMap.cs
- ListBox.cs
- EditorPartCollection.cs
- TransformerInfo.cs
- HttpWebRequestElement.cs
- LocationEnvironment.cs
- XamlBrushSerializer.cs
- ApplicationDirectory.cs
- Vector3DCollectionValueSerializer.cs
- TextAdaptor.cs
- SplashScreen.cs
- Timeline.cs
- SizeChangedInfo.cs
- IgnoreSection.cs
- StreamAsIStream.cs
- ViewStateModeByIdAttribute.cs
- ObjectDisposedException.cs
- DataControlFieldCell.cs
- GPStream.cs
- StrokeRenderer.cs
- ServiceDesigner.cs
- ThreadExceptionEvent.cs
- GridLength.cs
- IntegerValidatorAttribute.cs
- FixedDocumentSequencePaginator.cs
- AtomEntry.cs
- Attributes.cs
- SafeLibraryHandle.cs
- PagedDataSource.cs
- UInt64Storage.cs
- MultiSelector.cs
- FolderBrowserDialog.cs
- BindingManagerDataErrorEventArgs.cs
- ReferencedType.cs
- ParallelActivityDesigner.cs
- DesignerActionHeaderItem.cs
- DataTransferEventArgs.cs
- IssuedTokenClientBehaviorsElement.cs
- SourceElementsCollection.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- View.cs
- WindowsTreeView.cs
- Renderer.cs
- UrlEncodedParameterWriter.cs
- TextOptions.cs
- X509ChainPolicy.cs
- COM2PropertyBuilderUITypeEditor.cs
- counter.cs
- TypeToStringValueConverter.cs
- DbDataRecord.cs
- FrameworkContentElement.cs
- ArrayHelper.cs
- BuildProvider.cs
- CodeNamespaceImportCollection.cs
- Types.cs
- RadioButtonList.cs
- PropertyTab.cs
- TemplateBindingExtension.cs
- Simplifier.cs
- ProfilePropertyNameValidator.cs
- SwitchCase.cs
- WebPartConnectVerb.cs
- TypeToken.cs
- Debug.cs
- WebPartConnectionsCancelEventArgs.cs
- ClaimSet.cs
- ResourceReader.cs
- CodeDirectoryCompiler.cs