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
- DelegateCompletionCallbackWrapper.cs
- Scene3D.cs
- ObjectConverter.cs
- GeneralTransform3DTo2D.cs
- FormDesigner.cs
- DataPagerFieldCommandEventArgs.cs
- ConnectionStringSettingsCollection.cs
- ScaleTransform3D.cs
- ParsedAttributeCollection.cs
- DataGridColumn.cs
- WebPartDisplayModeCancelEventArgs.cs
- DataException.cs
- Array.cs
- CqlBlock.cs
- RegisteredArrayDeclaration.cs
- TextServicesLoader.cs
- TemplateFactory.cs
- CanonicalXml.cs
- SamlSubject.cs
- EnvelopedPkcs7.cs
- RouteItem.cs
- ObjectDataSourceView.cs
- BlurBitmapEffect.cs
- DataGridViewIntLinkedList.cs
- PreviewPrintController.cs
- FlowchartDesignerCommands.cs
- DodSequenceMerge.cs
- WorkflowCommandExtensionItem.cs
- SoapIgnoreAttribute.cs
- CommonXSendMessage.cs
- DataTableClearEvent.cs
- TemplateField.cs
- WCFModelStrings.Designer.cs
- XmlTextReader.cs
- StylusCaptureWithinProperty.cs
- SecurityPolicySection.cs
- Int32Converter.cs
- VerificationException.cs
- AlternateViewCollection.cs
- AssociationType.cs
- ErasingStroke.cs
- ModifierKeysValueSerializer.cs
- CallSiteOps.cs
- MemberMemberBinding.cs
- InkCanvasSelection.cs
- SafeHandle.cs
- RelationshipWrapper.cs
- EastAsianLunisolarCalendar.cs
- BitConverter.cs
- SqlBulkCopy.cs
- SystemColorTracker.cs
- BrowserTree.cs
- SubtreeProcessor.cs
- XmlRawWriter.cs
- MetabaseServerConfig.cs
- ProgramNode.cs
- SystemEvents.cs
- ClosableStream.cs
- Regex.cs
- MemberDescriptor.cs
- MiniModule.cs
- TableParaClient.cs
- RoutedEventValueSerializer.cs
- ColorKeyFrameCollection.cs
- StorageModelBuildProvider.cs
- SrgsGrammar.cs
- XmlNodeReader.cs
- DbDataRecord.cs
- MsmqIntegrationValidationBehavior.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- ConfigurationSettings.cs
- XhtmlBasicPageAdapter.cs
- ConfigViewGenerator.cs
- TriState.cs
- DelegateTypeInfo.cs
- Dynamic.cs
- LambdaCompiler.Address.cs
- CapabilitiesUse.cs
- GeometryModel3D.cs
- EdmScalarPropertyAttribute.cs
- HtmlSelect.cs
- NullableLongSumAggregationOperator.cs
- Stroke2.cs
- SHA1Managed.cs
- WebPartsPersonalization.cs
- ColorTransformHelper.cs
- safelink.cs
- ChangesetResponse.cs
- MessageFormatterConverter.cs
- ButtonPopupAdapter.cs
- CompilerGeneratedAttribute.cs
- HttpListenerException.cs
- ResourceDisplayNameAttribute.cs
- FontStyleConverter.cs
- EmptyWorkItem.cs
- XPathMultyIterator.cs
- LockedAssemblyCache.cs
- ImplicitInputBrush.cs
- Function.cs
- MaskDescriptors.cs