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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AdRotator.cs
- ThreadStartException.cs
- PersistenceProviderElement.cs
- Polygon.cs
- TopClause.cs
- CheckableControlBaseAdapter.cs
- ApplicationSecurityManager.cs
- ClipboardProcessor.cs
- Win32Native.cs
- BaseTemplatedMobileComponentEditor.cs
- Matrix.cs
- ResourceExpressionEditorSheet.cs
- ServerIdentity.cs
- DbConnectionStringBuilder.cs
- SafeRightsManagementPubHandle.cs
- CompositeClientFormatter.cs
- PageParserFilter.cs
- Variable.cs
- OdbcCommand.cs
- Annotation.cs
- EngineSite.cs
- DataGridViewCellLinkedList.cs
- SafeViewOfFileHandle.cs
- MsmqOutputChannel.cs
- TraceListener.cs
- CompressedStack.cs
- LocalizationParserHooks.cs
- httpstaticobjectscollection.cs
- HScrollProperties.cs
- Decorator.cs
- externdll.cs
- CollectionBase.cs
- WebPartUtil.cs
- ConstructorNeedsTagAttribute.cs
- DrawingAttributes.cs
- ShadowGlyph.cs
- MenuItemStyleCollection.cs
- XmlBufferReader.cs
- FontFamilyConverter.cs
- DynamicActivityTypeDescriptor.cs
- RewritingProcessor.cs
- UIElementAutomationPeer.cs
- XmlSchemaProviderAttribute.cs
- ApplicationFileParser.cs
- Span.cs
- ImportContext.cs
- ReflectionUtil.cs
- XmlNodeReader.cs
- BaseParser.cs
- MailWriter.cs
- ViewRendering.cs
- GeometryValueSerializer.cs
- BitmapInitialize.cs
- PatternMatcher.cs
- HtmlTernaryTree.cs
- AsyncPostBackTrigger.cs
- Point3DAnimationBase.cs
- TextBoxBase.cs
- PhysicalAddress.cs
- ConnectionPointConverter.cs
- XmlDictionary.cs
- WindowsTokenRoleProvider.cs
- ValueTypeFixupInfo.cs
- ObjectIDGenerator.cs
- ProxyElement.cs
- AppDomainProtocolHandler.cs
- DbConnectionPoolOptions.cs
- ComboBox.cs
- InvalidProgramException.cs
- DesignerWidgets.cs
- XmlCharCheckingReader.cs
- LinqDataSourceEditData.cs
- RowType.cs
- ClickablePoint.cs
- GatewayIPAddressInformationCollection.cs
- TrackBarRenderer.cs
- Journaling.cs
- PageAsyncTask.cs
- XmlQualifiedNameTest.cs
- FontDifferentiator.cs
- DecoderFallbackWithFailureFlag.cs
- Expander.cs
- LayoutEditorPart.cs
- ToolBarTray.cs
- sqlpipe.cs
- HttpInputStream.cs
- Single.cs
- StrokeNode.cs
- WebPartMovingEventArgs.cs
- WizardPanel.cs
- CodeFieldReferenceExpression.cs
- ResourceReferenceExpressionConverter.cs
- ListViewInsertionMark.cs
- XPathQilFactory.cs
- SortQuery.cs
- DataGridTablesFactory.cs
- CellCreator.cs
- ObjectSecurityT.cs
- TextSelection.cs
- GridViewDesigner.cs