-
Notifications
You must be signed in to change notification settings - Fork 1.6k
/
ContextConfiguration.xml
129 lines (121 loc) · 8.13 KB
/
ContextConfiguration.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<Type Name="ContextConfiguration" FullName="System.Web.DynamicData.ContextConfiguration">
<TypeSignature Language="C#" Value="public class ContextConfiguration" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit ContextConfiguration extends System.Object" />
<TypeSignature Language="DocId" Value="T:System.Web.DynamicData.ContextConfiguration" />
<TypeSignature Language="VB.NET" Value="Public Class ContextConfiguration" />
<TypeSignature Language="F#" Value="type ContextConfiguration = class" />
<TypeSignature Language="C++ CLI" Value="public ref class ContextConfiguration" />
<AssemblyInfo>
<AssemblyName>System.Web.DynamicData</AssemblyName>
<AssemblyVersion>3.5.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Object</BaseTypeName>
</Base>
<Interfaces />
<Docs>
<summary>Provides information for a data-context instance in order to allow customization.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Web.DynamicData.ContextConfiguration> class enables you to customize data access. For example, you can use this class to enable scaffolding for a Web application, or to define a custom metadata provider.
## Examples
The following example shows how to use the <xref:System.Web.DynamicData.ContextConfiguration> class when you call the <xref:System.Web.DynamicData.MetaModel.RegisterContext%2A> method in order to register a data context with scaffolding enabled.
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_WebNet/System.Web.DynamicData.MetaModel/CS/global.asax.cs" id="Snippet99":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_WebNet/System.Web.DynamicData.MetaModel/VB/global.asax.vb" id="Snippet99":::
]]></format>
</remarks>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public ContextConfiguration ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Web.DynamicData.ContextConfiguration.#ctor" />
<MemberSignature Language="VB.NET" Value="Public Sub New ()" />
<MemberSignature Language="C++ CLI" Value="public:
 ContextConfiguration();" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web.DynamicData</AssemblyName>
<AssemblyVersion>3.5.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters />
<Docs>
<summary>Initializes a new instance of the <see cref="T:System.Web.DynamicData.ContextConfiguration" /> class.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="MetadataProviderFactory">
<MemberSignature Language="C#" Value="public Func<Type,System.ComponentModel.TypeDescriptionProvider> MetadataProviderFactory { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Func`2<class System.Type, class System.ComponentModel.TypeDescriptionProvider> MetadataProviderFactory" />
<MemberSignature Language="DocId" Value="P:System.Web.DynamicData.ContextConfiguration.MetadataProviderFactory" />
<MemberSignature Language="VB.NET" Value="Public Property MetadataProviderFactory As Func(Of Type, TypeDescriptionProvider)" />
<MemberSignature Language="F#" Value="member this.MetadataProviderFactory : Func<Type, System.ComponentModel.TypeDescriptionProvider> with get, set" Usage="System.Web.DynamicData.ContextConfiguration.MetadataProviderFactory" />
<MemberSignature Language="C++ CLI" Value="public:
 property Func<Type ^, System::ComponentModel::TypeDescriptionProvider ^> ^ MetadataProviderFactory { Func<Type ^, System::ComponentModel::TypeDescriptionProvider ^> ^ get(); void set(Func<Type ^, System::ComponentModel::TypeDescriptionProvider ^> ^ value); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web.DynamicData</AssemblyName>
<AssemblyVersion>3.5.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName Language="C#">[get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]</AttributeName>
<AttributeName Language="F#">[<get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]</AttributeName>
</Attribute>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName Language="C#">[set: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]</AttributeName>
<AttributeName Language="F#">[<set: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Func<System.Type,System.ComponentModel.TypeDescriptionProvider></ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets the metadata provider.</summary>
<value>The type of the metadata provider.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This method enables you to define a custom metadata provider for a given data context.
]]></format>
</remarks>
<altmember cref="T:System.ComponentModel.TypeDescriptionProvider" />
</Docs>
</Member>
<Member MemberName="ScaffoldAllTables">
<MemberSignature Language="C#" Value="public bool ScaffoldAllTables { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool ScaffoldAllTables" />
<MemberSignature Language="DocId" Value="P:System.Web.DynamicData.ContextConfiguration.ScaffoldAllTables" />
<MemberSignature Language="VB.NET" Value="Public Property ScaffoldAllTables As Boolean" />
<MemberSignature Language="F#" Value="member this.ScaffoldAllTables : bool with get, set" Usage="System.Web.DynamicData.ContextConfiguration.ScaffoldAllTables" />
<MemberSignature Language="C++ CLI" Value="public:
 property bool ScaffoldAllTables { bool get(); void set(bool value); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web.DynamicData</AssemblyName>
<AssemblyVersion>3.5.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName Language="C#">[get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]</AttributeName>
<AttributeName Language="F#">[<get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]</AttributeName>
</Attribute>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName Language="C#">[set: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]</AttributeName>
<AttributeName Language="F#">[<set: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets a value that indicates whether scaffolding is enabled.</summary>
<value>
<see langword="true" /> if scaffolding is enabled; otherwise, <see langword="false" />. The default is <see langword="false" />.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
</Type>