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
- CompositeFontParser.cs
- AgileSafeNativeMemoryHandle.cs
- DrawingServices.cs
- KnownBoxes.cs
- RoutingTable.cs
- MediaEntryAttribute.cs
- WpfKnownMember.cs
- XsltCompileContext.cs
- XmlDomTextWriter.cs
- AssertSection.cs
- BidirectionalDictionary.cs
- InfiniteIntConverter.cs
- DataReaderContainer.cs
- GAC.cs
- PeerNearMe.cs
- DataChangedEventManager.cs
- ErrorHandler.cs
- HostSecurityManager.cs
- GroupItem.cs
- ZipIOLocalFileBlock.cs
- ProcessModule.cs
- COM2ICategorizePropertiesHandler.cs
- SerializationInfoEnumerator.cs
- RepeatBehaviorConverter.cs
- SqlOuterApplyReducer.cs
- processwaithandle.cs
- DefaultWorkflowTransactionService.cs
- DataBoundControlAdapter.cs
- CommonXSendMessage.cs
- Matrix.cs
- NativeConfigurationLoader.cs
- SqlClientFactory.cs
- StyleReferenceConverter.cs
- DbProviderFactories.cs
- WindowsToolbar.cs
- SafeRightsManagementSessionHandle.cs
- CursorInteropHelper.cs
- RuntimeResourceSet.cs
- QueryOperationResponseOfT.cs
- BindableTemplateBuilder.cs
- StorageTypeMapping.cs
- ActiveXMessageFormatter.cs
- SafeFreeMibTable.cs
- ExceptionHandlersDesigner.cs
- FormViewPagerRow.cs
- FormViewInsertedEventArgs.cs
- DbDataReader.cs
- NetTcpSecurityElement.cs
- ToolBar.cs
- GridViewPageEventArgs.cs
- OdbcEnvironmentHandle.cs
- Common.cs
- Keywords.cs
- Geometry3D.cs
- SystemMulticastIPAddressInformation.cs
- DataColumnPropertyDescriptor.cs
- CompiledAction.cs
- PeerContact.cs
- BuildProvidersCompiler.cs
- RowCache.cs
- CssClassPropertyAttribute.cs
- LogWriteRestartAreaAsyncResult.cs
- SqlFunctionAttribute.cs
- CompilerGeneratedAttribute.cs
- WebControlsSection.cs
- Win32.cs
- ObjectDataSourceWizardForm.cs
- LayoutTable.cs
- MetadataItemEmitter.cs
- X509ChainElement.cs
- Application.cs
- SqlMethodTransformer.cs
- X509Utils.cs
- ClientEndpointLoader.cs
- DynamicControlParameter.cs
- Atom10FeedFormatter.cs
- XmlDictionaryReader.cs
- TextEditorContextMenu.cs
- KnownTypes.cs
- CodeDefaultValueExpression.cs
- ClusterRegistryConfigurationProvider.cs
- TransactionManager.cs
- X509Extension.cs
- SessionStateContainer.cs
- XmlUtil.cs
- WindowsToolbarAsMenu.cs
- ToolStripProgressBar.cs
- WebPartConnectionsCancelEventArgs.cs
- PeerToPeerException.cs
- TextHidden.cs
- ListViewSelectEventArgs.cs
- MULTI_QI.cs
- AudioDeviceOut.cs
- DataGridViewEditingControlShowingEventArgs.cs
- KnownIds.cs
- TypefaceMetricsCache.cs
- SectionRecord.cs
- IERequestCache.cs
- HotCommands.cs
- SQLDecimal.cs