Code:
/ 4.0 / 4.0 / 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. 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
- PropertyMapper.cs
- StringResourceManager.cs
- StorageTypeMapping.cs
- DataControlFieldHeaderCell.cs
- DataKey.cs
- WorkflowServiceNamespace.cs
- TreeViewEvent.cs
- Policy.cs
- WindowsSlider.cs
- DelegateSerializationHolder.cs
- PropertyValue.cs
- ConversionValidationRule.cs
- RecordConverter.cs
- InfoCardSymmetricAlgorithm.cs
- MaterialGroup.cs
- CultureInfoConverter.cs
- TreeViewEvent.cs
- DataFormats.cs
- XsdBuildProvider.cs
- IdnMapping.cs
- EntityFunctions.cs
- ServiceNameElement.cs
- SerializationFieldInfo.cs
- AccessControlList.cs
- NavigationService.cs
- RadioButton.cs
- CancellationState.cs
- DataServiceEntityAttribute.cs
- SymbolTable.cs
- IntegerValidator.cs
- _Rfc2616CacheValidators.cs
- NonceCache.cs
- WebServiceClientProxyGenerator.cs
- MaterializeFromAtom.cs
- ConditionalWeakTable.cs
- ContentFilePart.cs
- ListViewAutomationPeer.cs
- PartitionedStreamMerger.cs
- BindingOperations.cs
- QueryStringParameter.cs
- LineSegment.cs
- HttpWebRequest.cs
- TextDpi.cs
- XmlElementList.cs
- OfTypeExpression.cs
- AssemblyCache.cs
- XmlObjectSerializerContext.cs
- Grammar.cs
- HtmlControlPersistable.cs
- IteratorFilter.cs
- StorageEntitySetMapping.cs
- COSERVERINFO.cs
- SectionRecord.cs
- InkCanvas.cs
- OneOf.cs
- DataGridItemCollection.cs
- DoubleAnimation.cs
- ChannelSinkStacks.cs
- WebPartEditorOkVerb.cs
- WindowsPrincipal.cs
- OLEDB_Enum.cs
- DetailsViewPagerRow.cs
- ManagementOperationWatcher.cs
- ExternalFile.cs
- MarkupCompiler.cs
- Transform3DGroup.cs
- AmbientLight.cs
- XslTransform.cs
- Pens.cs
- ToolBar.cs
- QuinticEase.cs
- CacheModeValueSerializer.cs
- TranslateTransform3D.cs
- AliasGenerator.cs
- CryptoKeySecurity.cs
- BrowserCapabilitiesCodeGenerator.cs
- CodeDirectoryCompiler.cs
- BypassElement.cs
- NumericUpDown.cs
- XmlSchemaSimpleContent.cs
- NegotiateStream.cs
- MachineKeySection.cs
- ProjectionCamera.cs
- TextElementCollectionHelper.cs
- Site.cs
- BStrWrapper.cs
- CodeIndexerExpression.cs
- ReferenceEqualityComparer.cs
- StylusDevice.cs
- IndependentlyAnimatedPropertyMetadata.cs
- ListView.cs
- SqlDataSourceCache.cs
- MarshalDirectiveException.cs
- Evidence.cs
- SessionStateModule.cs
- FilterFactory.cs
- SafeRightsManagementHandle.cs
- StructuredTypeEmitter.cs
- ConnectionStringSettings.cs
- MimeBasePart.cs