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
- HtmlInputText.cs
- TraceSection.cs
- SafeLocalAllocation.cs
- ZipIOExtraFieldElement.cs
- Collection.cs
- SecurityHelper.cs
- translator.cs
- IImplicitResourceProvider.cs
- PropertyMetadata.cs
- ThreadSafeList.cs
- FileDialogCustomPlacesCollection.cs
- ButtonBase.cs
- SqlFormatter.cs
- TransformedBitmap.cs
- SqlClientPermission.cs
- UrlPath.cs
- XPathScanner.cs
- SafeHandles.cs
- GlyphRunDrawing.cs
- TableLayoutPanelBehavior.cs
- XmlSchemaCompilationSettings.cs
- VisualBasic.cs
- Matrix3D.cs
- Utils.cs
- ISAPIWorkerRequest.cs
- SmtpClient.cs
- BaseAppDomainProtocolHandler.cs
- XmlSchemaSequence.cs
- RelatedPropertyManager.cs
- NotificationContext.cs
- Dispatcher.cs
- SiteMapPath.cs
- XPathSingletonIterator.cs
- XmlAnyElementAttribute.cs
- ColumnCollection.cs
- WebPartHelpVerb.cs
- ToolBar.cs
- DuplicateDetector.cs
- UIElement.cs
- StreamWithDictionary.cs
- ConfigXmlText.cs
- AdapterUtil.cs
- DSASignatureFormatter.cs
- SoapReflectionImporter.cs
- BinaryParser.cs
- DocumentSchemaValidator.cs
- CodeCompileUnit.cs
- BindingMAnagerBase.cs
- EventHandlerList.cs
- ConfigurationErrorsException.cs
- PersonalizationEntry.cs
- ContainerSelectorGlyph.cs
- ToolStripDropDownButton.cs
- CodeAttributeArgumentCollection.cs
- SessionIDManager.cs
- HttpCookiesSection.cs
- DefaultSerializationProviderAttribute.cs
- ComponentCommands.cs
- FormsAuthenticationModule.cs
- DrawTreeNodeEventArgs.cs
- IdentifierService.cs
- ExpanderAutomationPeer.cs
- AuthenticationModeHelper.cs
- Drawing.cs
- backend.cs
- RightsManagementProvider.cs
- Camera.cs
- X509Extension.cs
- XmlSchemaGroupRef.cs
- DataGridViewRow.cs
- DocumentPageViewAutomationPeer.cs
- ConsoleKeyInfo.cs
- WorkItem.cs
- ColumnResizeAdorner.cs
- DocumentViewerHelper.cs
- CustomBindingElement.cs
- HttpSessionStateWrapper.cs
- WindowsStatusBar.cs
- BaseParser.cs
- SimpleTypeResolver.cs
- ContentPropertyAttribute.cs
- DataGridTextBox.cs
- MSAAWinEventWrap.cs
- cookiecontainer.cs
- TypefaceMetricsCache.cs
- FrameworkContextData.cs
- XmlChildEnumerator.cs
- IdleTimeoutMonitor.cs
- Point3DValueSerializer.cs
- SchemaImporterExtensionElementCollection.cs
- AddValidationError.cs
- OdbcConnectionOpen.cs
- SqlMethodCallConverter.cs
- SecurityDocument.cs
- UserValidatedEventArgs.cs
- AssociationSet.cs
- DBCSCodePageEncoding.cs
- GridViewDeleteEventArgs.cs
- CharAnimationBase.cs
- TextPatternIdentifiers.cs