개정판 00aa0bf5
issue #937: fixed text location
Change-Id: I941f52c977df3f4716e00f26c3ccfff9545c3c34
FinalService/KCOM_FinalService/MarkupToPDF/Controls_PDF/HoneyPDFLib_DrawSet_DrawString.cs | ||
---|---|---|
12 | 12 |
{ |
13 | 13 |
public partial class HoneyPDFLib_DrawSet_Text |
14 | 14 |
{ |
15 |
const double MARGIN = 1.25; /// it's magic number |
|
16 |
|
|
17 | 15 |
private static iTextSharp.text.Font CreateFont(FontStyle fontstyle, FontWeight fontweight, TextDecorationCollection isUnderline, Rectangle rect, string text) |
18 | 16 |
{ |
19 | 17 |
string ARIALUNI_TFF = System.IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Fonts), "Arial Unicode MS.TTF"); |
... | ... | |
82 | 80 |
rect.TopLeft, rect.BottomLeft, |
83 | 81 |
rect.BottomRight, rect.TopRight |
84 | 82 |
}; |
83 |
rect.Inflate(lineSize * 0.5, lineSize * 0.5); /// 점을 중심으로 라인 두께가 그려짐으로 사각형 안쪽으로 텍스트가 쓰여지게 사각형을 키움 |
|
85 | 84 |
|
86 | 85 |
var calRect = MathSet.GetPointsToRectX(points); |
87 | 86 |
if(lineSize*2 > calRect.Height) lineSize *= 0.3; /// 텍스트가 뒤집어 지는것 방지 |
88 | 87 |
if (calRect.Top > calRect.Bottom) |
89 | 88 |
{ |
90 |
calRect.Left += (float)lineSize;
|
|
91 |
calRect.Top -= (float)lineSize;
|
|
92 |
calRect.Right -= (float)lineSize;
|
|
93 |
calRect.Bottom += (float)lineSize;
|
|
89 |
calRect.Left += (float)(lineSize*0.5);
|
|
90 |
calRect.Top -= (float)(lineSize*0.5);
|
|
91 |
calRect.Right -= (float)(lineSize*0.5);
|
|
92 |
calRect.Bottom += (float)(lineSize*0.5);
|
|
94 | 93 |
} |
95 | 94 |
else ///Top이 작을 경우(예: 문서를 회전하여 Comment 작업한 경우) |
96 | 95 |
{ |
97 |
calRect.Left += (float)lineSize;
|
|
98 |
calRect.Top += (float)lineSize;
|
|
99 |
calRect.Right -= (float)lineSize;
|
|
100 |
calRect.Bottom -= (float)lineSize;
|
|
96 |
calRect.Left += (float)(lineSize*0.5);
|
|
97 |
calRect.Top += (float)(lineSize*0.5);
|
|
98 |
calRect.Right -= (float)(lineSize*0.5);
|
|
99 |
calRect.Bottom -= (float)(lineSize*0.5);
|
|
101 | 100 |
} |
102 | 101 |
|
103 | 102 |
contentByte.SetLineWidth((float)lineSize); |
... | ... | |
158 | 157 |
float fLeadingSize = (calRect.Height / (float)tokens.Length); |
159 | 158 |
float spacing = ((float)calRect.Height - tokens.Length*itextFont.CalculatedSize)/tokens.Length; |
160 | 159 |
ct.SetLeading(itextFont.CalculatedSize + spacing, ct.MultipliedLeading); |
161 |
/// expand size of rectangle to prevent text disappear |
|
162 |
calRect.Right += itextFont.CalculatedSize; |
|
163 |
|
|
164 |
if (calRect.Top > calRect.Bottom) |
|
165 |
{ |
|
166 |
float top = calRect.Bottom + (tokens.Length - 1) * (itextFont.CalculatedSize + spacing) + itextFont.CalculatedSize*(float)HoneyPDFLib_DrawSet_Text.MARGIN; ; |
|
167 |
calRect.Top = top < calRect.Top ? calRect.Top : top; |
|
168 |
} |
|
169 |
else |
|
170 |
{ |
|
171 |
float bottom = calRect.Top + (tokens.Length - 1) * (itextFont.CalculatedSize + spacing) + itextFont.CalculatedSize*(float)HoneyPDFLib_DrawSet_Text.MARGIN; ; |
|
172 |
calRect.Bottom = bottom < calRect.Bottom ? calRect.Bottom : bottom; |
|
173 |
} |
|
174 |
/// up to here |
|
175 | 160 |
ct.SetSimpleColumn(calRect); |
176 | 161 |
ct.Go(); |
177 | 162 |
|
... | ... | |
208 | 193 |
contentByte.SaveState(); |
209 | 194 |
|
210 | 195 |
Rect rect = new Rect(sp, ep); |
211 |
List<Point> points = new List<Point>(); |
|
212 |
points.Add(rect.TopLeft); |
|
213 |
points.Add(rect.BottomLeft); |
|
214 |
points.Add(rect.BottomRight); |
|
215 |
points.Add(rect.TopRight); |
|
196 |
List<Point> points = new List<Point> |
|
197 |
{ |
|
198 |
rect.TopLeft, rect.BottomLeft, |
|
199 |
rect.BottomRight, rect.TopRight |
|
200 |
}; |
|
201 |
rect.Inflate(lineSize * 0.5, lineSize * 0.5); /// 점을 중심으로 라인 두께가 그려짐으로 사각형 안쪽으로 텍스트가 쓰여지게 사각형을 키움 |
|
216 | 202 |
|
217 | 203 |
contentByte.SetLineWidth((float)lineSize); |
218 | 204 |
|
... | ... | |
254 | 240 |
/// calculate text area except border |
255 | 241 |
if (calRect.Top > calRect.Bottom) |
256 | 242 |
{ |
257 |
calRect.Left += (float)lineSize;
|
|
258 |
calRect.Top -= (float)lineSize;
|
|
259 |
calRect.Right -= (float)lineSize;
|
|
260 |
calRect.Bottom += (float)lineSize;
|
|
243 |
calRect.Left += (float)(lineSize*0.5);
|
|
244 |
calRect.Top -= (float)(lineSize*0.5);
|
|
245 |
calRect.Right -= (float)(lineSize*0.5);
|
|
246 |
calRect.Bottom += (float)(lineSize*0.5);
|
|
261 | 247 |
} |
262 | 248 |
else ///Top이 작을 경우(예: 문서를 회전하여 Comment 작업한 경우) |
263 | 249 |
{ |
264 |
calRect.Left += (float)lineSize;
|
|
265 |
calRect.Top += (float)lineSize;
|
|
266 |
calRect.Right -= (float)lineSize;
|
|
267 |
calRect.Bottom -= (float)lineSize;
|
|
250 |
calRect.Left += (float)(lineSize*0.5);
|
|
251 |
calRect.Top += (float)(lineSize*0.5);
|
|
252 |
calRect.Right -= (float)(lineSize*0.5);
|
|
253 |
calRect.Bottom -= (float)(lineSize*0.5);
|
|
268 | 254 |
} |
269 | 255 |
|
270 | 256 |
iTextSharp.text.Font itextFont = HoneyPDFLib_DrawSet_Text.CreateFont(fontstyle, fontweight, isUnderline, calRect, text); |
... | ... | |
289 | 275 |
ct.Alignment = Element.ALIGN_MIDDLE | Element.ALIGN_CENTER; |
290 | 276 |
float spacing = ((float)calRect.Height - tokens.Length * itextFont.CalculatedSize) / tokens.Length; |
291 | 277 |
ct.SetLeading(itextFont.CalculatedSize + spacing, ct.MultipliedLeading); |
292 |
/// expand size of rectangle to prevent text disappear |
|
293 |
calRect.Right += itextFont.CalculatedSize; |
|
294 |
if (calRect.Top > calRect.Bottom) |
|
295 |
{ |
|
296 |
float top = calRect.Bottom + (tokens.Length - 1) * (itextFont.CalculatedSize + spacing) + itextFont.CalculatedSize*(float)HoneyPDFLib_DrawSet_Text.MARGIN; ; |
|
297 |
calRect.Top = top < calRect.Top ? calRect.Top : top; |
|
298 |
} |
|
299 |
else |
|
300 |
{ |
|
301 |
float bottom = calRect.Top + (tokens.Length - 1) * (itextFont.CalculatedSize + spacing) + itextFont.CalculatedSize*(float)HoneyPDFLib_DrawSet_Text.MARGIN; ; |
|
302 |
calRect.Bottom = bottom < calRect.Bottom ? calRect.Bottom : bottom; |
|
303 |
} |
|
304 |
/// up to here |
|
305 | 278 |
ct.SetSimpleColumn(calRect); |
306 | 279 |
ct.Go(); |
307 | 280 |
|
FinalService/KCOM_FinalService/MarkupToPDF/bin/Debug/EntityFramework.xml | ||
---|---|---|
1 |
<?xml version="1.0"?> |
|
2 |
<doc> |
|
3 |
<assembly> |
|
4 |
<name>EntityFramework</name> |
|
5 |
</assembly> |
|
6 |
<members> |
|
7 |
<member name="T:System.Data.Entity.Edm.EdmDataModelType"> |
|
8 |
<summary> |
|
9 |
The base for all all Entity Data Model (EDM) types that represent a type from the EDM type system. |
|
10 |
</summary> |
|
11 |
</member> |
|
12 |
<member name="T:System.Data.Entity.Edm.EdmNamespaceItem"> |
|
13 |
<summary> |
|
14 |
Represents an item in an Entity Data Model (EDM) <see cref="T:System.Data.Entity.Edm.EdmNamespace"/> . |
|
15 |
</summary> |
|
16 |
</member> |
|
17 |
<member name="T:System.Data.Entity.Edm.EdmQualifiedNameMetadataItem"> |
|
18 |
<summary> |
|
19 |
The base for all all Entity Data Model (EDM) item types that with a Name property that represents a qualified (can be dotted) name. |
|
20 |
</summary> |
|
21 |
</member> |
|
22 |
<member name="T:System.Data.Entity.Edm.EdmNamedMetadataItem"> |
|
23 |
<summary> |
|
24 |
The base for all all Entity Data Model (EDM) item types that with a <see cref="P:System.Data.Entity.Edm.EdmNamedMetadataItem.Name"/> property. |
|
25 |
</summary> |
|
26 |
</member> |
|
27 |
<member name="T:System.Data.Entity.Edm.EdmMetadataItem"> |
|
28 |
<summary> |
|
29 |
The base for all all Entity Data Model (EDM) types that support annotation using <see cref="T:System.Data.Entity.Edm.Common.DataModelAnnotation"/> . |
|
30 |
</summary> |
|
31 |
</member> |
|
32 |
<member name="T:System.Data.Entity.Edm.EdmDataModelItem"> |
|
33 |
<summary> |
|
34 |
EdmDataModelItem is the base for all types in the Entity Data Model (EDM) metadata construction and modification API. |
|
35 |
</summary> |
|
36 |
</member> |
|
37 |
<member name="T:System.Data.Entity.Edm.Common.DataModelItem"> |
|
38 |
<summary> |
|
39 |
DataModelItem is the base for all types in the EDM metadata reflection, construction and modification API. |
|
40 |
</summary> |
|
41 |
</member> |
|
42 |
<member name="P:System.Data.Entity.Edm.EdmDataModelItem.ItemKind"> |
|
43 |
<summary> |
|
44 |
Gets an <see cref="T:System.Data.Entity.Edm.EdmItemKind"/> value indicating which Entity Data Model (EDM) concept is represented by this item. |
|
45 |
</summary> |
|
46 |
</member> |
|
47 |
<member name="T:System.Data.Entity.Edm.Common.IAnnotatedDataModelItem"> |
|
48 |
<summary> |
|
49 |
IAnnotatedDataModelItem is implemented by model-specific base types for all types with an <see cref="P:System.Data.Entity.Edm.Common.IAnnotatedDataModelItem.Annotations"/> property. <seealso cref="T:System.Data.Entity.Edm.EdmDataModelItem"/> |
|
50 |
</summary> |
|
51 |
</member> |
|
52 |
<member name="P:System.Data.Entity.Edm.Common.IAnnotatedDataModelItem.Annotations"> |
|
53 |
<summary> |
|
54 |
Gets or sets the currently assigned annotations. |
|
55 |
</summary> |
|
56 |
</member> |
|
57 |
<member name="P:System.Data.Entity.Edm.EdmMetadataItem.Annotations"> |
|
58 |
<summary> |
|
59 |
Gets or sets the currently assigned annotations. |
|
60 |
</summary> |
|
61 |
</member> |
|
62 |
<member name="P:System.Data.Entity.Edm.EdmMetadataItem.ChildItems"> |
|
63 |
<summary> |
|
64 |
Returns all EdmItem children directly contained by this EdmItem. |
|
65 |
</summary> |
|
66 |
</member> |
|
67 |
<member name="T:System.Data.Entity.Edm.Common.INamedDataModelItem"> |
|
68 |
<summary> |
|
69 |
INamedDataModelItem is implemented by model-specific base types for all types with a <see cref="P:System.Data.Entity.Edm.Common.INamedDataModelItem.Name"/> property. <seealso cref="T:System.Data.Entity.Edm.EdmNamedMetadataItem"/> |
|
70 |
</summary> |
|
71 |
</member> |
|
72 |
<member name="P:System.Data.Entity.Edm.Common.INamedDataModelItem.Name"> |
|
73 |
<summary> |
|
74 |
Gets or sets the currently assigned name. |
|
75 |
</summary> |
|
76 |
</member> |
|
77 |
<member name="P:System.Data.Entity.Edm.EdmNamedMetadataItem.Name"> |
|
78 |
<summary> |
|
79 |
Gets or sets the currently assigned name. |
|
80 |
</summary> |
|
81 |
</member> |
|
82 |
<member name="P:System.Data.Entity.Edm.EdmDataModelType.IsAbstract"> |
|
83 |
<summary> |
|
84 |
Gets a value indicating whether this type is abstract. |
|
85 |
</summary> |
|
86 |
</member> |
|
87 |
<member name="P:System.Data.Entity.Edm.EdmDataModelType.BaseType"> |
|
88 |
<summary> |
|
89 |
Gets the optional base type of this type. |
|
90 |
</summary> |
|
91 |
</member> |
|
92 |
<member name="T:System.Data.Entity.Edm.EdmStructuralMember"> |
|
93 |
<summary> |
|
94 |
EdmStructuralMember is the base for all types that represent members of structural items in the Entity Data Model (EDM) metadata construction and modification API. |
|
95 |
</summary> |
|
96 |
</member> |
|
97 |
<member name="T:System.Data.Entity.Infrastructure.DbConnectionInfo"> |
|
98 |
<summary> |
|
99 |
Represents information about a database connection. |
|
100 |
</summary> |
|
101 |
</member> |
|
102 |
<member name="M:System.Data.Entity.Infrastructure.DbConnectionInfo.#ctor(System.String)"> |
|
103 |
<summary> |
|
104 |
Creates a new instance of DbConnectionInfo representing a connection that is specified in the application configuration file. |
|
105 |
</summary> |
|
106 |
<param name = "connectionName">The name of the connection string in the application configuration.</param> |
|
107 |
</member> |
|
108 |
<member name="M:System.Data.Entity.Infrastructure.DbConnectionInfo.#ctor(System.String,System.String)"> |
|
109 |
<summary> |
|
110 |
Creates a new instance of DbConnectionInfo based on a connection string. |
|
111 |
</summary> |
|
112 |
<param name = "connectionString">The connection string to use for the connection.</param> |
|
113 |
<param name = "providerInvariantName">The name of the provider to use for the connection. Use 'System.Data.SqlClient' for SQL Server.</param> |
|
114 |
</member> |
|
115 |
<member name="M:System.Data.Entity.Infrastructure.DbConnectionInfo.GetConnectionString(System.Data.Entity.Internal.AppConfig)"> |
|
116 |
<summary> |
|
117 |
Gets the connection information represented by this instance. |
|
118 |
</summary> |
|
119 |
<param name = "config">Configuration to use if connection comes from the configuration file.</param> |
|
120 |
</member> |
|
121 |
<member name="T:System.Data.Entity.Infrastructure.LocalDbConnectionFactory"> |
|
122 |
<summary> |
|
123 |
Instances of this class are used to create DbConnection objects for |
|
124 |
SQL Server LocalDb based on a given database name or connection string. |
|
125 |
</summary> |
|
126 |
<remarks> |
|
127 |
An instance of this class can be set on the <see cref="T:System.Data.Entity.Database"/> class or in the |
|
128 |
app.config/web.config for the application to cause all DbContexts created with no |
|
129 |
connection information or just a database name to use SQL Server LocalDb by default. |
|
130 |
This class is immutable since multiple threads may access instances simultaneously |
|
131 |
when creating connections. |
|
132 |
</remarks> |
|
133 |
</member> |
|
134 |
<member name="T:System.Data.Entity.Infrastructure.IDbConnectionFactory"> |
|
135 |
<summary> |
|
136 |
Implementations of this interface are used to create DbConnection objects for |
|
137 |
a type of database server based on a given database name. |
|
138 |
An Instance is set on the <see cref="T:System.Data.Entity.Database"/> class to |
|
139 |
cause all DbContexts created with no connection information or just a database |
|
140 |
name or connection string to use a certain type of database server by default. |
|
141 |
Two implementations of this interface are provided: <see cref="T:System.Data.Entity.Infrastructure.SqlConnectionFactory"/> |
|
142 |
is used to create connections to Microsoft SQL Server, including EXPRESS editions. |
|
143 |
<see cref="T:System.Data.Entity.Infrastructure.SqlCeConnectionFactory"/> is used to create connections to Microsoft SQL |
|
144 |
Server Compact Editions. |
|
145 |
Other implementations for other database servers can be added as needed. |
|
146 |
Note that implementations should be thread safe or immutable since they may |
|
147 |
be accessed by multiple threads at the same time. |
|
148 |
</summary> |
|
149 |
</member> |
|
150 |
<member name="M:System.Data.Entity.Infrastructure.IDbConnectionFactory.CreateConnection(System.String)"> |
|
151 |
<summary> |
|
152 |
Creates a connection based on the given database name or connection string. |
|
153 |
</summary> |
|
154 |
<param name = "nameOrConnectionString">The database name or connection string.</param> |
|
155 |
<returns>An initialized DbConnection.</returns> |
|
156 |
</member> |
|
157 |
<member name="M:System.Data.Entity.Infrastructure.LocalDbConnectionFactory.#ctor(System.String)"> |
|
158 |
<summary> |
|
159 |
Creates a new instance of the connection factory for the given version of LocalDb. |
|
160 |
For SQL Server 2012 LocalDb use "v11.0". |
|
161 |
</summary> |
|
162 |
<param name="localDbVersion">The LocalDb version to use.</param> |
|
163 |
</member> |
|
164 |
<member name="M:System.Data.Entity.Infrastructure.LocalDbConnectionFactory.#ctor(System.String,System.String)"> |
|
165 |
<summary> |
|
166 |
Creates a new instance of the connection factory for the given version of LocalDb. |
|
167 |
For SQL Server 2012 LocalDb use "v11.0". |
|
168 |
|
|
169 |
</summary> |
|
170 |
<param name="localDbVersion">The LocalDb version to use.</param> |
|
171 |
<param name = "baseConnectionString"> |
|
172 |
The connection string to use for options to the database other than the 'Initial Catalog', |
|
173 |
'Data Source', and 'AttachDbFilename'. |
|
174 |
The 'Initial Catalog' and 'AttachDbFilename' will be prepended to this string based on the |
|
175 |
database name when CreateConnection is called. |
|
176 |
The 'Data Source' will be set based on the LocalDbVersion argument. |
|
177 |
</param> |
|
178 |
</member> |
|
179 |
<member name="M:System.Data.Entity.Infrastructure.LocalDbConnectionFactory.CreateConnection(System.String)"> |
|
180 |
<summary> |
|
181 |
Creates a connection for SQL Server LocalDb based on the given database name or connection string. |
|
182 |
If the given string contains an '=' character then it is treated as a full connection string, |
|
183 |
otherwise it is treated as a database name only. |
|
184 |
</summary> |
|
185 |
<param name = "nameOrConnectionString">The database name or connection string.</param> |
|
186 |
<returns>An initialized DbConnection.</returns> |
|
187 |
</member> |
|
188 |
<member name="P:System.Data.Entity.Infrastructure.LocalDbConnectionFactory.BaseConnectionString"> |
|
189 |
<summary> |
|
190 |
The connection string to use for options to the database other than the 'Initial Catalog', |
|
191 |
'Data Source', and 'AttachDbFilename'. |
|
192 |
The 'Initial Catalog' and 'AttachDbFilename' will be prepended to this string based on the |
|
193 |
database name when CreateConnection is called. |
|
194 |
The 'Data Source' will be set based on the LocalDbVersion argument. |
|
195 |
The default is 'Integrated Security=True; MultipleActiveResultSets=True;'. |
|
196 |
</summary> |
|
197 |
</member> |
|
198 |
<member name="T:System.Data.Entity.Internal.ClonedObjectContext"> |
|
199 |
<summary> |
|
200 |
Encapsulates a cloned <see cref="P:System.Data.Entity.Internal.ClonedObjectContext.ObjectContext"/> and store <see cref="T:System.Data.Common.DbConnection"/>. Note that these |
|
201 |
objects are disposable and should be used in a using block to ensure both the cloned context and the |
|
202 |
cloned connection are disposed. |
|
203 |
</summary> |
|
204 |
</member> |
|
205 |
<member name="M:System.Data.Entity.Internal.ClonedObjectContext.#ctor"> |
|
206 |
<summary> |
|
207 |
For mocking. |
|
208 |
</summary> |
|
209 |
</member> |
|
210 |
<member name="M:System.Data.Entity.Internal.ClonedObjectContext.#ctor(System.Data.Entity.Internal.MockingProxies.ObjectContextProxy,System.String,System.Boolean)"> |
|
211 |
<summary> |
|
212 |
Creates a clone of the given <see cref="P:System.Data.Entity.Internal.ClonedObjectContext.ObjectContext"/>. The underlying <see cref="T:System.Data.Common.DbConnection"/> of |
|
213 |
the context is also cloned and the given connection string is used for the connection string of |
|
214 |
the cloned connection. |
|
215 |
</summary> |
|
216 |
</member> |
|
217 |
<member name="M:System.Data.Entity.Internal.ClonedObjectContext.TransferLoadedAssemblies(System.Data.Entity.Internal.MockingProxies.ObjectContextProxy)"> |
|
218 |
<summary> |
|
219 |
Finds the assemblies that were used for loading o-space types in the source context |
|
220 |
and loads those assemblies in the cloned context. |
|
221 |
</summary> |
|
222 |
</member> |
|
223 |
<member name="M:System.Data.Entity.Internal.ClonedObjectContext.Dispose"> |
|
224 |
<summary> |
|
225 |
Disposes both the underlying ObjectContext and its store connection. |
|
226 |
</summary> |
|
227 |
</member> |
|
228 |
<member name="P:System.Data.Entity.Internal.ClonedObjectContext.ObjectContext"> |
|
229 |
<summary> |
|
230 |
The cloned context. |
|
231 |
</summary> |
|
232 |
</member> |
|
233 |
<member name="P:System.Data.Entity.Internal.ClonedObjectContext.Connection"> |
|
234 |
<summary> |
|
235 |
This is always the store connection of the underlying ObjectContext. |
|
236 |
</summary> |
|
237 |
</member> |
|
238 |
<member name="T:System.Data.Entity.Internal.ConfigFile.DatabaseInitializerElement"> |
|
239 |
<summary> |
|
240 |
Represents setting the database initializer for a specific context type |
|
241 |
</summary> |
|
242 |
</member> |
|
243 |
<member name="T:System.Data.Entity.Internal.ConfigFile.ParameterElement"> |
|
244 |
<summary> |
|
245 |
Represents a parameter to be passed to a method |
|
246 |
</summary> |
|
247 |
</member> |
|
248 |
<member name="T:System.Data.Entity.Internal.ConfigFile.ParameterCollection"> |
|
249 |
<summary> |
|
250 |
Represents a series of parameters to pass to a method |
|
251 |
</summary> |
|
252 |
</member> |
|
253 |
<member name="M:System.Data.Entity.Internal.ConfigFile.ParameterCollection.NewElement"> |
|
254 |
<summary> |
|
255 |
Adds a new parameter to the collection |
|
256 |
Used for unit testing |
|
257 |
</summary> |
|
258 |
</member> |
|
259 |
<member name="T:System.Data.Entity.Internal.ConfigFile.ContextCollection"> |
|
260 |
<summary> |
|
261 |
Represents the configuration for a series of contexts |
|
262 |
</summary> |
|
263 |
</member> |
|
264 |
<member name="M:System.Data.Entity.Internal.ConfigFile.ContextCollection.NewElement(System.String)"> |
|
265 |
<summary> |
|
266 |
Adds a new context to the collection |
|
267 |
Used for unit testing |
|
268 |
</summary> |
|
269 |
</member> |
|
270 |
<member name="T:System.Data.Entity.Internal.ConfigFile.ContextElement"> |
|
271 |
<summary> |
|
272 |
Represents the configuration for a specific context type |
|
273 |
</summary> |
|
274 |
</member> |
|
275 |
<member name="T:System.Data.Entity.Internal.ConfigFile.DefaultConnectionFactoryElement"> |
|
276 |
<summary> |
|
277 |
Represents setting the default connection factory |
|
278 |
</summary> |
|
279 |
</member> |
|
280 |
<member name="T:System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection"> |
|
281 |
<summary> |
|
282 |
Represents all Entity Framework related configuration |
|
283 |
</summary> |
|
284 |
</member> |
|
285 |
<member name="T:System.Data.Entity.Internal.DatabaseCreator"> |
|
286 |
<summary> |
|
287 |
Handles creating databases either using the core provider or the Migrations pipeline. |
|
288 |
</summary> |
|
289 |
</member> |
|
290 |
<member name="M:System.Data.Entity.Internal.DatabaseCreator.CreateDatabase(System.Data.Entity.Internal.InternalContext,System.Func{System.Data.Entity.Migrations.DbMigrationsConfiguration,System.Data.Entity.DbContext,System.Data.Entity.Migrations.DbMigrator},System.Data.Objects.ObjectContext)"> |
|
291 |
<summary> |
|
292 |
Creates a database using the core provider (i.e. ObjectContext.CreateDatabase) or |
|
293 |
by using Code First Migrations <see cref="T:System.Data.Entity.Migrations.DbMigrator"/> to create an empty database |
|
294 |
and the perform an automatic migration to the current model. |
|
295 |
Migrations is used if Code First is being used and the EF provider is for SQL Server |
|
296 |
or SQL Compact. The core is used for non-Code First models and for other providers even |
|
297 |
when using Code First. |
|
298 |
</summary> |
|
299 |
</member> |
|
300 |
<member name="T:System.Data.Entity.DbContext"> |
|
301 |
<summary> |
|
302 |
A DbContext instance represents a combination of the Unit Of Work and Repository patterns such that |
|
303 |
it can be used to query from a database and group together changes that will then be written |
|
304 |
back to the store as a unit. |
|
305 |
DbContext is conceptually similar to ObjectContext. |
|
306 |
</summary> |
|
307 |
<remarks> |
|
308 |
DbContext is usually used with a derived type that contains <see cref="T:System.Data.Entity.DbSet`1"/> properties for |
|
309 |
the root entities of the model. These sets are automatically initialized when the |
|
310 |
instance of the derived class is created. This behavior can be modified by applying the |
|
311 |
<see cref="T:System.Data.Entity.Infrastructure.SuppressDbSetInitializationAttribute"/> attribute to either the entire derived context |
|
312 |
class, or to individual properties on the class. |
|
313 |
|
|
314 |
The Entity Data Model backing the context can be specified in several ways. When using the Code First |
|
315 |
approach, the <see cref="T:System.Data.Entity.DbSet`1"/> properties on the derived context are used to build a model |
|
316 |
by convention. The protected OnModelCreating method can be overridden to tweak this model. More |
|
317 |
control over the model used for the Model First approach can be obtained by creating a <see cref="T:System.Data.Entity.Infrastructure.DbCompiledModel"/> |
|
318 |
explicitly from a <see cref="T:System.Data.Entity.DbModelBuilder"/> and passing this model to one of the DbContext constructors. |
|
319 |
|
|
320 |
When using the Database First or Model First approach the Entity Data Model can be created using the |
|
321 |
Entity Designer (or manually through creation of an EDMX file) and then this model can be specified using |
|
322 |
entity connection string or an <see cref="T:System.Data.EntityClient.EntityConnection"/> object. |
|
323 |
|
|
324 |
The connection to the database (including the name of the database) can be specified in several ways. |
|
325 |
If the parameterless DbContext constructor is called from a derived context, then the name of the derived context |
|
326 |
is used to find a connection string in the app.config or web.config file. If no connection string is found, then |
|
327 |
the name is passed to the DefaultConnectionFactory registered on the <see cref="T:System.Data.Entity.Database"/> class. The connection |
|
328 |
factory then uses the context name as the database name in a default connection string. (This default connection |
|
329 |
string points to .\SQLEXPRESS on the local machine unless a different DefaultConnectionFactory is registered.) |
|
330 |
|
|
331 |
Instead of using the derived context name, the connection/database name can also be specified explicitly by |
|
332 |
passing the name to one of the DbContext constructors that takes a string. The name can also be passed in |
|
333 |
the form "name=myname", in which case the name must be found in the config file or an exception will be thrown. |
|
334 |
|
|
335 |
Note that the connection found in the app.config or web.config file can be a normal database connection |
|
336 |
string (not a special Entity Framework connection string) in which case the DbContext will use Code First. |
|
337 |
However, if the connection found in the config file is a special Entity Framework connection string, then the |
|
338 |
DbContext will use Database/Model First and the model specified in the connection string will be used. |
|
339 |
|
|
340 |
An existing or explicitly created DbConnection can also be used instead of the database/connection name. |
|
341 |
|
|
342 |
A <see cref="T:System.Data.Entity.DbModelBuilderVersionAttribute"/> can be applied to a class derived from DbContext to set the |
|
343 |
version of conventions used by the context when it creates a model. If no attribute is applied then the |
|
344 |
latest version of conventions will be used. |
|
345 |
</remarks> |
|
346 |
</member> |
|
347 |
<member name="T:System.Data.Entity.Infrastructure.IObjectContextAdapter"> |
|
348 |
<summary> |
|
349 |
Interface implemented by objects that can provide an <see cref="P:System.Data.Entity.Infrastructure.IObjectContextAdapter.ObjectContext"/> instance. |
|
350 |
The <see cref="T:System.Data.Entity.DbContext"/> class implements this interface to provide access to the underlying |
|
351 |
ObjectContext. |
|
352 |
</summary> |
|
353 |
</member> |
|
354 |
<member name="P:System.Data.Entity.Infrastructure.IObjectContextAdapter.ObjectContext"> |
|
355 |
<summary> |
|
356 |
Gets the object context. |
|
357 |
</summary> |
|
358 |
<value>The object context.</value> |
|
359 |
</member> |
|
360 |
<member name="M:System.Data.Entity.DbContext.#ctor"> |
|
361 |
<summary> |
|
362 |
Constructs a new context instance using conventions to create the name of the database to |
|
363 |
which a connection will be made. The by-convention name is the full name (namespace + class name) |
|
364 |
of the derived context class. |
|
365 |
See the class remarks for how this is used to create a connection. |
|
366 |
</summary> |
|
367 |
</member> |
|
368 |
<member name="M:System.Data.Entity.DbContext.#ctor(System.Data.Entity.Infrastructure.DbCompiledModel)"> |
|
369 |
<summary> |
|
370 |
Constructs a new context instance using conventions to create the name of the database to |
|
371 |
which a connection will be made, and initializes it from the given model. |
|
372 |
The by-convention name is the full name (namespace + class name) of the derived context class. |
|
373 |
See the class remarks for how this is used to create a connection. |
|
374 |
</summary> |
|
375 |
<param name = "model">The model that will back this context.</param> |
|
376 |
</member> |
|
377 |
<member name="M:System.Data.Entity.DbContext.#ctor(System.String)"> |
|
378 |
<summary> |
|
379 |
Constructs a new context instance using the given string as the name or connection string for the |
|
380 |
database to which a connection will be made. |
|
381 |
See the class remarks for how this is used to create a connection. |
|
382 |
</summary> |
|
383 |
<param name = "nameOrConnectionString">Either the database name or a connection string.</param> |
|
384 |
</member> |
|
385 |
<member name="M:System.Data.Entity.DbContext.#ctor(System.String,System.Data.Entity.Infrastructure.DbCompiledModel)"> |
|
386 |
<summary> |
|
387 |
Constructs a new context instance using the given string as the name or connection string for the |
|
388 |
database to which a connection will be made, and initializes it from the given model. |
|
389 |
See the class remarks for how this is used to create a connection. |
|
390 |
</summary> |
|
391 |
<param name = "nameOrConnectionString">Either the database name or a connection string.</param> |
|
392 |
<param name = "model">The model that will back this context.</param> |
|
393 |
</member> |
|
394 |
<member name="M:System.Data.Entity.DbContext.#ctor(System.Data.Common.DbConnection,System.Boolean)"> |
|
395 |
<summary> |
|
396 |
Constructs a new context instance using the existing connection to connect to a database. |
|
397 |
The connection will not be disposed when the context is disposed. |
|
398 |
</summary> |
|
399 |
<param name = "existingConnection">An existing connection to use for the new context.</param> |
|
400 |
<param name = "contextOwnsConnection">If set to <c>true</c> the connection is disposed when |
|
401 |
the context is disposed, otherwise the caller must dispose the connection.</param> |
|
402 |
</member> |
|
403 |
<member name="M:System.Data.Entity.DbContext.#ctor(System.Data.Common.DbConnection,System.Data.Entity.Infrastructure.DbCompiledModel,System.Boolean)"> |
|
404 |
<summary> |
|
405 |
Constructs a new context instance using the existing connection to connect to a database, |
|
406 |
and initializes it from the given model. |
|
407 |
The connection will not be disposed when the context is disposed. |
|
408 |
<param name = "existingConnection">An existing connection to use for the new context.</param> |
|
409 |
<param name = "model">The model that will back this context.</param> |
|
410 |
<param name = "contextOwnsConnection">If set to <c>true</c> the connection is disposed when |
|
411 |
the context is disposed, otherwise the caller must dispose the connection.</param> |
|
412 |
</summary> |
|
413 |
</member> |
|
414 |
<member name="M:System.Data.Entity.DbContext.#ctor(System.Data.Objects.ObjectContext,System.Boolean)"> |
|
415 |
<summary> |
|
416 |
Constructs a new context instance around an existing ObjectContext. |
|
417 |
<param name = "objectContext">An existing ObjectContext to wrap with the new context.</param> |
|
418 |
<param name = "dbContextOwnsObjectContext">If set to <c>true</c> the ObjectContext is disposed when |
|
419 |
the DbContext is disposed, otherwise the caller must dispose the connection.</param> |
|
420 |
</summary> |
|
421 |
</member> |
|
422 |
<member name="M:System.Data.Entity.DbContext.InitializeLazyInternalContext(System.Data.Entity.Internal.IInternalConnection,System.Data.Entity.Infrastructure.DbCompiledModel)"> |
|
423 |
<summary> |
|
424 |
Initializes the internal context, discovers and initializes sets, and initializes from a model if one is provided. |
|
425 |
</summary> |
|
426 |
</member> |
|
427 |
<member name="M:System.Data.Entity.DbContext.DiscoverAndInitializeSets"> |
|
428 |
<summary> |
|
429 |
Discovers DbSets and initializes them. |
|
430 |
</summary> |
|
431 |
</member> |
|
432 |
<member name="M:System.Data.Entity.DbContext.OnModelCreating(System.Data.Entity.DbModelBuilder)"> |
|
433 |
<summary> |
|
434 |
This method is called when the model for a derived context has been initialized, but |
|
435 |
before the model has been locked down and used to initialize the context. The default |
|
436 |
implementation of this method does nothing, but it can be overridden in a derived class |
|
437 |
such that the model can be further configured before it is locked down. |
|
438 |
</summary> |
|
439 |
<remarks> |
|
440 |
Typically, this method is called only once when the first instance of a derived context |
|
441 |
is created. The model for that context is then cached and is for all further instances of |
|
442 |
the context in the app domain. This caching can be disabled by setting the ModelCaching |
|
443 |
property on the given ModelBuidler, but note that this can seriously degrade performance. |
|
444 |
More control over caching is provided through use of the DbModelBuilder and DbContextFactory |
|
445 |
classes directly. |
|
446 |
</remarks> |
|
447 |
<param name = "modelBuilder">The builder that defines the model for the context being created.</param> |
|
448 |
</member> |
|
449 |
<member name="M:System.Data.Entity.DbContext.CallOnModelCreating(System.Data.Entity.DbModelBuilder)"> |
|
450 |
<summary> |
|
451 |
Internal method used to make the call to the real OnModelCreating method. |
|
452 |
</summary> |
|
453 |
<param name = "modelBuilder">The model builder.</param> |
|
454 |
</member> |
|
455 |
<member name="M:System.Data.Entity.DbContext.Set``1"> |
|
456 |
<summary> |
|
457 |
Returns a DbSet instance for access to entities of the given type in the context, |
|
458 |
the ObjectStateManager, and the underlying store. |
|
459 |
</summary> |
|
460 |
<remarks> |
|
461 |
See the DbSet class for more details. |
|
462 |
</remarks> |
|
463 |
<typeparam name = "TEntity">The type entity for which a set should be returned.</typeparam> |
|
464 |
<returns>A set for the given entity type.</returns> |
|
465 |
</member> |
|
466 |
<member name="M:System.Data.Entity.DbContext.Set(System.Type)"> |
|
467 |
<summary> |
|
468 |
Returns a non-generic DbSet instance for access to entities of the given type in the context, |
|
469 |
the ObjectStateManager, and the underlying store. |
|
470 |
</summary> |
|
471 |
<param name = "entityType">The type of entity for which a set should be returned.</param> |
|
472 |
<returns>A set for the given entity type.</returns> |
|
473 |
<remarks> |
|
474 |
See the DbSet class for more details. |
|
475 |
</remarks> |
|
476 |
</member> |
|
477 |
<member name="M:System.Data.Entity.DbContext.SaveChanges"> |
|
478 |
<summary> |
|
479 |
Saves all changes made in this context to the underlying database. |
|
480 |
</summary> |
|
481 |
<returns>The number of objects written to the underlying database.</returns> |
|
482 |
<exception cref="T:System.InvalidOperationException">Thrown if the context has been disposed.</exception> |
|
483 |
</member> |
|
484 |
<member name="M:System.Data.Entity.DbContext.GetValidationErrors"> |
|
485 |
<summary> |
|
486 |
Validates tracked entities and returns a Collection of <see cref="T:System.Data.Entity.Validation.DbEntityValidationResult"/> containing validation results. |
|
487 |
</summary> |
|
488 |
<returns> |
|
489 |
Collection of validation results for invalid entities. The collection is never null and must not contain null |
|
490 |
values or results for valid entities. |
|
491 |
</returns> |
|
492 |
<remarks> |
|
493 |
1. This method calls DetectChanges() to determine states of the tracked entities unless |
|
494 |
DbContextConfiguration.AutoDetectChangesEnabled is set to false. |
|
495 |
2. By default only Added on Modified entities are validated. The user is able to change this behavior |
|
496 |
by overriding ShouldValidateEntity method. |
|
497 |
</remarks> |
|
498 |
</member> |
|
499 |
<member name="M:System.Data.Entity.DbContext.ShouldValidateEntity(System.Data.Entity.Infrastructure.DbEntityEntry)"> |
|
500 |
<summary> |
|
501 |
Extension point allowing the user to override the default behavior of validating only |
|
502 |
added and modified entities. |
|
503 |
</summary> |
|
504 |
<param name = "entityEntry">DbEntityEntry instance that is supposed to be validated.</param> |
|
505 |
<returns>true to proceed with validation. false otherwise.</returns> |
|
506 |
</member> |
|
507 |
<member name="M:System.Data.Entity.DbContext.ValidateEntity(System.Data.Entity.Infrastructure.DbEntityEntry,System.Collections.Generic.IDictionary{System.Object,System.Object})"> |
|
508 |
<summary> |
|
509 |
Extension point allowing the user to customize validation of an entity or filter out validation results. |
|
510 |
Called by <see cref="M:System.Data.Entity.DbContext.GetValidationErrors"/>. |
|
511 |
</summary> |
|
512 |
<param name="entityEntry">DbEntityEntry instance to be validated.</param> |
|
513 |
<param name="items">User defined dictionary containing additional info for custom validation. |
|
514 |
It will be passed to <see cref="T:System.ComponentModel.DataAnnotations.ValidationContext"/> |
|
515 |
and will be exposed as <see cref="P:System.ComponentModel.DataAnnotations.ValidationContext.Items"/>. |
|
516 |
This parameter is optional and can be null.</param> |
|
517 |
<returns>Entity validation result. Possibly null when overridden.</returns> |
|
518 |
</member> |
|
519 |
<member name="M:System.Data.Entity.DbContext.CallValidateEntity(System.Data.Entity.Infrastructure.DbEntityEntry)"> |
|
520 |
<summary> |
|
521 |
Internal method that calls the protected ValidateEntity method. |
|
522 |
</summary> |
|
523 |
<param name="entityEntry">DbEntityEntry instance to be validated.</param> |
|
524 |
<param name="items">User defined dictionary containing additional info for custom validation. |
|
525 |
It will be passed to <see cref="T:System.ComponentModel.DataAnnotations.ValidationContext"/> |
|
526 |
and will be exposed as <see cref="P:System.ComponentModel.DataAnnotations.ValidationContext.Items"/>. |
|
527 |
This parameter is optional and can be null.</param> |
|
528 |
<returns>Entity validation result. Possibly null when ValidateEntity is overridden.</returns> |
|
529 |
</member> |
|
530 |
<member name="M:System.Data.Entity.DbContext.Entry``1(``0)"> |
|
531 |
<summary> |
|
532 |
Gets a <see cref="T:System.Data.Entity.Infrastructure.DbEntityEntry`1"/> object for the given entity providing access to |
|
533 |
information about the entity and the ability to perform actions on the entity. |
|
534 |
</summary> |
|
535 |
<typeparam name="TEntity">The type of the entity.</typeparam> |
|
536 |
<param name="entity">The entity.</param> |
|
537 |
<returns>An entry for the entity.</returns> |
|
538 |
</member> |
|
539 |
<member name="M:System.Data.Entity.DbContext.Entry(System.Object)"> |
|
540 |
<summary> |
|
541 |
Gets a <see cref="T:System.Data.Entity.Infrastructure.DbEntityEntry"/> object for the given entity providing access to |
|
542 |
information about the entity and the ability to perform actions on the entity. |
|
543 |
</summary> |
|
544 |
<param name="entity">The entity.</param> |
|
545 |
<returns>An entry for the entity.</returns> |
|
546 |
</member> |
|
547 |
<member name="M:System.Data.Entity.DbContext.Dispose"> |
|
548 |
<summary> |
|
549 |
Calls the protected Dispose method. |
|
550 |
</summary> |
|
551 |
</member> |
|
552 |
<member name="M:System.Data.Entity.DbContext.Dispose(System.Boolean)"> |
|
553 |
<summary> |
|
554 |
Disposes the context. The underlying <see cref="T:System.Data.Objects.ObjectContext"/> is also disposed if it was created |
|
555 |
is by this context or ownership was passed to this context when this context was created. |
|
556 |
The connection to the database (<see cref="T:System.Data.Common.DbConnection"/> object) is also disposed if it was created |
|
557 |
is by this context or ownership was passed to this context when this context was created. |
|
558 |
</summary> |
|
559 |
<param name="disposing"><c>true</c> to release both managed and unmanaged resources; <c>false</c> to release only unmanaged resources.</param> |
|
560 |
</member> |
|
561 |
<member name="P:System.Data.Entity.DbContext.Database"> |
|
562 |
<summary> |
|
563 |
Creates a Database instance for this context that allows for creation/deletion/existence checks |
|
564 |
for the underlying database. |
|
565 |
</summary> |
|
566 |
</member> |
|
567 |
<member name="P:System.Data.Entity.DbContext.System#Data#Entity#Infrastructure#IObjectContextAdapter#ObjectContext"> |
|
568 |
<summary> |
|
569 |
Returns the Entity Framework ObjectContext that is underlying this context. |
|
570 |
</summary> |
|
571 |
<exception cref="T:System.InvalidOperationException">Thrown if the context has been disposed.</exception> |
|
572 |
</member> |
|
573 |
<member name="P:System.Data.Entity.DbContext.ChangeTracker"> |
|
574 |
<summary> |
|
575 |
Provides access to features of the context that deal with change tracking of entities. |
|
576 |
</summary> |
|
577 |
<value>An object used to access features that deal with change tracking.</value> |
|
578 |
</member> |
|
579 |
<member name="P:System.Data.Entity.DbContext.Configuration"> |
|
580 |
<summary> |
|
581 |
Provides access to configuration options for the context. |
|
582 |
</summary> |
|
583 |
<value>An object used to access configuration options.</value> |
|
584 |
</member> |
|
585 |
<member name="P:System.Data.Entity.DbContext.InternalContext"> |
|
586 |
<summary> |
|
587 |
Provides access to the underlying InternalContext for other parts of the internal design. |
|
588 |
</summary> |
|
589 |
</member> |
|
590 |
<member name="T:System.Data.Entity.Internal.AppConfig"> |
|
591 |
<summary> |
|
592 |
A simple representation of an app.config or web.config file. |
|
593 |
</summary> |
|
594 |
</member> |
|
595 |
<member name="M:System.Data.Entity.Internal.AppConfig.#ctor(System.Configuration.Configuration)"> |
|
596 |
<summary> |
|
597 |
Initializes a new instance of AppConfig based on supplied configuration |
|
598 |
</summary> |
|
599 |
<param name="configuration">Configuration to load settings from</param> |
|
600 |
</member> |
|
601 |
<member name="M:System.Data.Entity.Internal.AppConfig.#ctor(System.Configuration.ConnectionStringSettingsCollection)"> |
|
602 |
<summary> |
|
603 |
Initializes a new instance of AppConfig based on supplied connection strings |
|
604 |
The default configuration for database initializers and default connection factory will be used |
|
605 |
</summary> |
|
606 |
<param name="connectionStrings">Connection strings to be used</param> |
|
607 |
</member> |
|
608 |
<member name="M:System.Data.Entity.Internal.AppConfig.#ctor"> |
|
609 |
<summary> |
|
610 |
Initializes a new instance of AppConfig based on the <see cref="T:System.Configuration.ConfigurationManager"/> for the AppDomain |
|
611 |
</summary> |
|
612 |
<remarks> |
|
613 |
Use AppConfig.DefaultInstance instead of this constructor |
|
614 |
</remarks> |
|
615 |
</member> |
|
616 |
<member name="M:System.Data.Entity.Internal.AppConfig.ApplyInitializers"> |
|
617 |
<summary> |
|
618 |
Appies any database intializers specified in the configuration |
|
619 |
</summary> |
|
620 |
</member> |
|
621 |
<member name="M:System.Data.Entity.Internal.AppConfig.InternalApplyInitializers(System.Boolean)"> |
|
622 |
<summary> |
|
623 |
Appies any database intializers specified in the configuration |
|
624 |
</summary> |
|
625 |
<param name="force"> |
|
626 |
Value indicating if initializers should be re-applied if they have already been applied in this AppDomain |
|
627 |
</param> |
|
628 |
</member> |
|
629 |
<member name="M:System.Data.Entity.Internal.AppConfig.GetConnectionString(System.String)"> |
|
630 |
<summary> |
|
631 |
Gets the specified connection string from the configuration |
|
632 |
</summary> |
|
633 |
<param name="name">Name of the connection string to get</param> |
|
634 |
<returns>The connection string, or null if there is no connection string with the specified name</returns> |
|
635 |
</member> |
|
636 |
<member name="P:System.Data.Entity.Internal.AppConfig.DefaultConnectionFactory"> |
|
637 |
<summary> |
|
638 |
Gets the default connection factory based on the configuration |
|
639 |
</summary> |
|
640 |
</member> |
|
641 |
<member name="P:System.Data.Entity.Internal.AppConfig.DefaultInstance"> |
|
642 |
<summary> |
|
643 |
Gets a singleton instance of configuration based on the <see cref="T:System.Configuration.ConfigurationManager"/> for the AppDomain |
|
644 |
</summary> |
|
645 |
</member> |
|
646 |
<member name="T:System.Data.Entity.Internal.MockingProxies.EntityConnectionProxy"> |
|
647 |
<summary> |
|
648 |
Acts as a proxy for <see cref="T:System.Data.EntityClient.EntityConnection"/> that for the most part just passes calls |
|
649 |
through to the real object but uses virtual methods/properties such that uses of the object |
|
650 |
can be mocked. |
|
651 |
</summary> |
|
652 |
</member> |
|
653 |
<member name="T:System.Data.Entity.Internal.LegacyDatabaseInitializerConfig"> |
|
654 |
<summary> |
|
655 |
Encapsulates information read from the application config file that specifies a database initializer |
|
656 |
and allows that initializer to be dynamically applied. |
|
657 |
</summary> |
|
658 |
</member> |
|
659 |
<member name="M:System.Data.Entity.Internal.LegacyDatabaseInitializerConfig.#ctor(System.String,System.String)"> |
|
660 |
<summary> |
|
661 |
Initializes a new instance of the <see cref="T:System.Data.Entity.Internal.LegacyDatabaseInitializerConfig"/> class. |
|
662 |
</summary> |
|
663 |
<param name="configKey">The key from the entry in the config file.</param> |
|
664 |
<param name="configValue">The value from the enrty in the config file.</param> |
|
665 |
</member> |
|
666 |
<member name="M:System.Data.Entity.Internal.LegacyDatabaseInitializerConfig.ApplyInitializer"> |
|
667 |
<summary> |
|
668 |
Uses the context type and initializer type specified in the config to create an initializer instance |
|
669 |
and set it with the DbDbatabase.SetInitializer method. |
|
670 |
</summary> |
|
671 |
</member> |
|
672 |
<member name="M:System.Data.Entity.Internal.LegacyDatabaseInitializerConfig.ApplyInitializersFromConfig(System.Configuration.KeyValueConfigurationCollection)"> |
|
673 |
<summary> |
|
674 |
Reads all initializers from the application config file and sets them using the Database class. |
|
675 |
</summary> |
|
676 |
</member> |
|
677 |
<member name="T:System.Data.Entity.Internal.ModelHashCalculator"> |
|
678 |
<summary> |
|
679 |
Calculates the model hash values used the EdmMetadata table from EF 4.1/4.2. |
|
680 |
</summary> |
|
681 |
</member> |
|
682 |
<member name="M:System.Data.Entity.Internal.ModelHashCalculator.Calculate(System.Data.Entity.Infrastructure.DbCompiledModel)"> |
|
683 |
<summary> |
|
684 |
Calculates an SHA256 hash of the EDMX from the given code first model. This is the hash stored in |
|
685 |
the database in the EdmMetadata table in EF 4.1/4.2. The hash is always calculated using a v2 schema |
|
686 |
as was generated by EF 4.1/4.2 and with the <see cref="T:System.Data.Entity.Infrastructure.EdmMetadata"/> entity included in the model. |
|
687 |
</summary> |
|
688 |
</member> |
|
689 |
<member name="T:System.Data.Entity.Internal.MockingProxies.ObjectContextProxy"> |
|
690 |
<summary> |
|
691 |
Acts as a proxy for <see cref="T:System.Data.Objects.ObjectContext"/> that for the most part just passes calls |
|
692 |
through to the real object but uses virtual methods/properties such that uses of the object |
|
693 |
can be mocked. |
|
694 |
</summary> |
|
695 |
</member> |
|
696 |
<member name="T:System.Data.Entity.MigrateDatabaseToLatestVersion`2"> |
|
697 |
<summary> |
|
698 |
An implementation of <see cref="T:System.Data.Entity.IDatabaseInitializer`1"/> that will use Code First Migrations |
|
699 |
to update the database to the latest version. |
|
700 |
</summary> |
|
701 |
</member> |
|
702 |
<!-- Badly formed XML comment ignored for member "T:System.Data.Entity.IDatabaseInitializer`1" --> |
|
703 |
<member name="M:System.Data.Entity.IDatabaseInitializer`1.InitializeDatabase(`0)"> |
|
704 |
<summary> |
|
705 |
Executes the strategy to initialize the database for the given context. |
|
706 |
</summary> |
|
707 |
<param name = "context">The context.</param> |
|
708 |
</member> |
|
709 |
<member name="M:System.Data.Entity.MigrateDatabaseToLatestVersion`2.#ctor"> |
|
710 |
<summary> |
|
711 |
Initializes a new instance of the MigrateDatabaseToLatestVersion class. |
|
712 |
</summary> |
|
713 |
</member> |
|
714 |
<member name="M:System.Data.Entity.MigrateDatabaseToLatestVersion`2.#ctor(System.String)"> |
|
715 |
<summary> |
|
716 |
Initializes a new instance of the MigrateDatabaseToLatestVersion class that will |
|
717 |
use a specific connection string from the configuration file to connect to |
|
718 |
the database to perform the migration. |
|
719 |
</summary> |
|
720 |
<param name="connectionStringName">The name of the connection string to use for migration.</param> |
|
721 |
</member> |
|
722 |
<member name="M:System.Data.Entity.MigrateDatabaseToLatestVersion`2.InitializeDatabase(`0)"> |
|
723 |
<inheritdoc/> |
|
724 |
</member> |
|
725 |
<member name="T:System.Data.Entity.Migrations.Builders.ColumnBuilder"> |
|
726 |
<summary> |
|
727 |
Helper class that is used to configure a column. |
|
728 |
</summary> |
|
729 |
</member> |
|
730 |
<member name="M:System.Data.Entity.Migrations.Builders.ColumnBuilder.Binary(System.Nullable{System.Boolean},System.Nullable{System.Int32},System.Nullable{System.Boolean},System.Nullable{System.Boolean},System.Byte[],System.String,System.Boolean,System.String,System.String)"> |
|
731 |
<summary> |
|
732 |
Creates a new column definition to store Binary data. |
|
733 |
</summary> |
|
734 |
<param name = "nullable">Value indicating whether or not the column allows null values.</param> |
|
735 |
<param name = "maxLength">The maximum allowable length of the array data.</param> |
|
736 |
<param name = "fixedLength">Value indicating whether or not all data should be padded to the maximum length.</param> |
|
737 |
<param name = "isMaxLength">Value indicating whether or not the maximum length supported by the database provider should be used.</param> |
|
738 |
<param name = "defaultValue">Constant value to use as the default value for this column.</param> |
|
739 |
<param name = "defaultValueSql">SQL expression used as the default value for this column.</param> |
|
740 |
<param name = "timestamp">Value indicating whether or not this column should be configured as a timestamp.</param> |
|
741 |
<param name = "name">The name of the column.</param> |
|
742 |
<param name = "storeType">Provider specific data type to use for this column.</param> |
|
743 |
<returns>The newly constructed column definition.</returns> |
|
744 |
</member> |
|
745 |
<member name="M:System.Data.Entity.Migrations.Builders.ColumnBuilder.Boolean(System.Nullable{System.Boolean},System.Nullable{System.Boolean},System.String,System.String,System.String)"> |
|
746 |
<summary> |
|
747 |
Creates a new column definition to store Boolean data. |
|
748 |
</summary> |
|
749 |
<param name = "nullable">Value indicating whether or not the column allows null values.</param> |
|
750 |
<param name = "defaultValue">Constant value to use as the default value for this column.</param> |
|
751 |
<param name = "defaultValueSql">SQL expression used as the default value for this column.</param> |
|
752 |
<param name = "name">The name of the column.</param> |
|
753 |
<param name = "storeType">Provider specific data type to use for this column.</param> |
|
754 |
<returns>The newly constructed column definition.</returns> |
|
755 |
</member> |
|
756 |
<member name="M:System.Data.Entity.Migrations.Builders.ColumnBuilder.Byte(System.Nullable{System.Boolean},System.Boolean,System.Nullable{System.Byte},System.String,System.String,System.String)"> |
|
757 |
<summary> |
|
758 |
Creates a new column definition to store Byte data. |
|
759 |
</summary> |
|
760 |
<param name = "nullable">Value indicating whether or not the column allows null values.</param> |
|
761 |
<param name = "identity">Value indicating whether or not the database will generate values for this column during insert.</param> |
|
762 |
<param name = "defaultValue">Constant value to use as the default value for this column.</param> |
|
763 |
<param name = "defaultValueSql">SQL expression used as the default value for this column.</param> |
|
764 |
<param name = "name">The name of the column.</param> |
|
765 |
<param name = "storeType">Provider specific data type to use for this column.</param> |
|
766 |
<returns>The newly constructed column definition.</returns> |
|
767 |
</member> |
|
768 |
<member name="M:System.Data.Entity.Migrations.Builders.ColumnBuilder.DateTime(System.Nullable{System.Boolean},System.Nullable{System.Byte},System.Nullable{System.DateTime},System.String,System.String,System.String)"> |
|
769 |
<summary> |
|
770 |
Creates a new column definition to store DateTime data. |
|
771 |
</summary> |
|
772 |
<param name = "nullable">Value indicating whether or not the column allows null values.</param> |
|
773 |
<param name = "precision">The precision of the column.</param> |
|
774 |
<param name = "defaultValue">Constant value to use as the default value for this column.</param> |
|
775 |
<param name = "defaultValueSql">SQL expression used as the default value for this column.</param> |
|
776 |
<param name = "name">The name of the column.</param> |
|
777 |
<param name = "storeType">Provider specific data type to use for this column.</param> |
|
778 |
<returns>The newly constructed column definition.</returns> |
|
779 |
</member> |
|
780 |
<member name="M:System.Data.Entity.Migrations.Builders.ColumnBuilder.Decimal(System.Nullable{System.Boolean},System.Nullable{System.Byte},System.Nullable{System.Byte},System.Nullable{System.Decimal},System.String,System.String,System.String,System.Boolean)"> |
|
781 |
<summary> |
|
782 |
Creates a new column definition to store Decimal data. |
|
783 |
</summary> |
|
784 |
<param name = "nullable">Value indicating whether or not the column allows null values.</param> |
|
785 |
<param name = "precision">The numeric precision of the column.</param> |
|
786 |
<param name = "scale">The numeric scale of the column.</param> |
|
787 |
<param name = "defaultValue">Constant value to use as the default value for this column.</param> |
|
788 |
<param name = "defaultValueSql">SQL expression used as the default value for this column.</param> |
|
789 |
<param name = "name">The name of the column.</param> |
|
790 |
<param name = "storeType">Provider specific data type to use for this column.</param> |
|
791 |
<param name = "identity">Value indicating whether or not the database will generate values for this column during insert.</param> |
|
792 |
<returns>The newly constructed column definition.</returns> |
|
793 |
</member> |
|
794 |
<member name="M:System.Data.Entity.Migrations.Builders.ColumnBuilder.Double(System.Nullable{System.Boolean},System.Nullable{System.Double},System.String,System.String,System.String)"> |
|
795 |
<summary> |
|
796 |
Creates a new column definition to store Double data. |
|
797 |
</summary> |
|
798 |
<param name = "nullable">Value indicating whether or not the column allows null values.</param> |
|
799 |
<param name = "defaultValue">Constant value to use as the default value for this column.</param> |
|
800 |
<param name = "defaultValueSql">SQL expression used as the default value for this column.</param> |
|
801 |
<param name = "name">The name of the column.</param> |
|
802 |
<param name = "storeType">Provider specific data type to use for this column.</param> |
|
803 |
<returns>The newly constructed column definition.</returns> |
|
804 |
</member> |
|
805 |
<member name="M:System.Data.Entity.Migrations.Builders.ColumnBuilder.Guid(System.Nullable{System.Boolean},System.Boolean,System.Nullable{System.Guid},System.String,System.String,System.String)"> |
|
806 |
<summary> |
|
807 |
Creates a new column definition to store GUID data. |
|
808 |
</summary> |
|
809 |
<param name = "nullable">Value indicating whether or not the column allows null values.</param> |
|
810 |
<param name = "identity">Value indicating whether or not the database will generate values for this column during insert.</param> |
|
811 |
<param name = "defaultValue">Constant value to use as the default value for this column.</param> |
|
812 |
<param name = "defaultValueSql">SQL expression used as the default value for this column.</param> |
|
813 |
<param name = "name">The name of the column.</param> |
|
814 |
<param name = "storeType">Provider specific data type to use for this column.</param> |
|
815 |
<returns>The newly constructed column definition.</returns> |
|
816 |
</member> |
|
817 |
<member name="M:System.Data.Entity.Migrations.Builders.ColumnBuilder.Single(System.Nullable{System.Boolean},System.Nullable{System.Single},System.String,System.String,System.String)"> |
|
818 |
<summary> |
|
819 |
Creates a new column definition to store Single data. |
|
820 |
</summary> |
|
821 |
<param name = "nullable">Value indicating whether or not the column allows null values.</param> |
|
822 |
<param name = "defaultValue">Constant value to use as the default value for this column.</param> |
|
823 |
<param name = "defaultValueSql">SQL expression used as the default value for this column.</param> |
|
824 |
<param name = "name">The name of the column.</param> |
|
825 |
<param name = "storeType">Provider specific data type to use for this column.</param> |
|
826 |
<returns>The newly constructed column definition.</returns> |
|
827 |
</member> |
|
828 |
<member name="M:System.Data.Entity.Migrations.Builders.ColumnBuilder.Short(System.Nullable{System.Boolean},System.Boolean,System.Nullable{System.Int16},System.String,System.String,System.String)"> |
|
829 |
<summary> |
|
830 |
Creates a new column definition to store Short data. |
|
831 |
</summary> |
|
832 |
<param name = "nullable">Value indicating whether or not the column allows null values.</param> |
|
833 |
<param name = "identity">Value indicating whether or not the database will generate values for this column during insert.</param> |
|
834 |
<param name = "defaultValue">Constant value to use as the default value for this column.</param> |
|
835 |
<param name = "defaultValueSql">SQL expression used as the default value for this column.</param> |
|
836 |
<param name = "name">The name of the column.</param> |
|
837 |
<param name = "storeType">Provider specific data type to use for this column.</param> |
|
838 |
<returns>The newly constructed column definition.</returns> |
|
839 |
</member> |
|
840 |
<member name="M:System.Data.Entity.Migrations.Builders.ColumnBuilder.Int(System.Nullable{System.Boolean},System.Boolean,System.Nullable{System.Int32},System.String,System.String,System.String)"> |
|
841 |
<summary> |
|
842 |
Creates a new column definition to store Integer data. |
|
843 |
</summary> |
|
844 |
<param name = "nullable">Value indicating whether or not the column allows null values.</param> |
|
845 |
<param name = "identity">Value indicating whether or not the database will generate values for this column during insert.</param> |
|
846 |
<param name = "defaultValue">Constant value to use as the default value for this column.</param> |
|
847 |
<param name = "defaultValueSql">SQL expression used as the default value for this column.</param> |
|
848 |
<param name = "name">The name of the column.</param> |
|
849 |
<param name = "storeType">Provider specific data type to use for this column.</param> |
|
850 |
<returns>The newly constructed column definition.</returns> |
|
851 |
</member> |
|
852 |
<member name="M:System.Data.Entity.Migrations.Builders.ColumnBuilder.Long(System.Nullable{System.Boolean},System.Boolean,System.Nullable{System.Int64},System.String,System.String,System.String)"> |
|
853 |
<summary> |
|
854 |
Creates a new column definition to store Long data. |
|
855 |
</summary> |
|
856 |
<param name = "nullable">Value indicating whether or not the column allows null values.</param> |
|
857 |
<param name = "identity">Value indicating whether or not the database will generate values for this column during insert.</param> |
|
858 |
<param name = "defaultValue">Constant value to use as the default value for this column.</param> |
|
859 |
<param name = "defaultValueSql">SQL expression used as the default value for this column.</param> |
|
860 |
<param name = "name">The name of the column.</param> |
|
861 |
<param name = "storeType">Provider specific data type to use for this column.</param> |
|
862 |
<returns>The newly constructed column definition.</returns> |
|
863 |
</member> |
|
864 |
<member name="M:System.Data.Entity.Migrations.Builders.ColumnBuilder.String(System.Nullable{System.Boolean},System.Nullable{System.Int32},System.Nullable{System.Boolean},System.Nullable{System.Boolean},System.Nullable{System.Boolean},System.String,System.String,System.String,System.String)"> |
|
865 |
<summary> |
|
866 |
Creates a new column definition to store String data. |
|
867 |
</summary> |
|
868 |
<param name = "nullable">Value indicating whether or not the column allows null values.</param> |
|
869 |
<param name = "maxLength">The maximum allowable length of the string data.</param> |
|
870 |
<param name = "fixedLength">Value indicating whether or not all data should be padded to the maximum length.</param> |
|
871 |
<param name = "isMaxLength">Value indicating whether or not the maximum length supported by the database provider should be used.</param> |
|
872 |
<param name = "unicode">Value indicating whether or not the column supports Unicode content.</param> |
|
873 |
<param name = "defaultValue">Constant value to use as the default value for this column.</param> |
|
874 |
<param name = "defaultValueSql">SQL expression used as the default value for this column.</param> |
|
875 |
<param name = "name">The name of the column.</param> |
|
876 |
<param name = "storeType">Provider specific data type to use for this column.</param> |
|
877 |
<returns>The newly constructed column definition.</returns> |
|
878 |
</member> |
|
879 |
<member name="M:System.Data.Entity.Migrations.Builders.ColumnBuilder.Time(System.Nullable{System.Boolean},System.Nullable{System.Byte},System.Nullable{System.TimeSpan},System.String,System.String,System.String)"> |
|
880 |
<summary> |
|
881 |
Creates a new column definition to store Time data. |
|
882 |
</summary> |
|
883 |
<param name = "nullable">Value indicating whether or not the column allows null values.</param> |
|
884 |
<param name = "precision">The precision of the column.</param> |
|
885 |
<param name = "defaultValue">Constant value to use as the default value for this column.</param> |
|
886 |
<param name = "defaultValueSql">SQL expression used as the default value for this column.</param> |
|
887 |
<param name = "name">The name of the column.</param> |
|
888 |
<param name = "storeType">Provider specific data type to use for this column.</param> |
|
889 |
<returns>The newly constructed column definition.</returns> |
|
890 |
</member> |
|
891 |
<member name="M:System.Data.Entity.Migrations.Builders.ColumnBuilder.DateTimeOffset(System.Nullable{System.Boolean},System.Nullable{System.Byte},System.Nullable{System.DateTimeOffset},System.String,System.String,System.String)"> |
|
892 |
<summary> |
|
893 |
Creates a new column definition to store DateTimeOffset data. |
|
894 |
</summary> |
|
895 |
<param name = "nullable">Value indicating whether or not the column allows null values.</param> |
|
896 |
<param name = "precision">The precision of the column.</param> |
|
897 |
<param name = "defaultValue">Constant value to use as the default value for this column.</param> |
|
898 |
<param name = "defaultValueSql">SQL expression used as the default value for this column.</param> |
|
899 |
<param name = "name">The name of the column.</param> |
|
900 |
<param name = "storeType">Provider specific data type to use for this column.</param> |
|
901 |
<returns>The newly constructed column definition.</returns> |
|
902 |
</member> |
|
903 |
<member name="M:System.Data.Entity.Migrations.Builders.ColumnBuilder.Geography(System.Nullable{System.Boolean},System.Data.Spatial.DbGeography,System.String,System.String,System.String)"> |
|
904 |
<summary> |
|
905 |
Creates a new column definition to store geography data. |
|
906 |
</summary> |
|
907 |
<param name = "nullable">Value indicating whether or not the column allows null values.</param> |
|
908 |
<param name = "defaultValue">Constant value to use as the default value for this column.</param> |
|
909 |
<param name = "defaultValueSql">SQL expression used as the default value for this column.</param> |
|
910 |
<param name = "name">The name of the column.</param> |
|
911 |
<param name = "storeType">Provider specific data type to use for this column.</param> |
|
912 |
<returns>The newly constructed column definition.</returns> |
|
913 |
</member> |
|
914 |
<member name="M:System.Data.Entity.Migrations.Builders.ColumnBuilder.Geometry(System.Nullable{System.Boolean},System.Data.Spatial.DbGeometry,System.String,System.String,System.String)"> |
|
915 |
<summary> |
|
916 |
Creates a new column definition to store geometry data. |
|
917 |
</summary> |
|
918 |
<param name = "nullable">Value indicating whether or not the column allows null values.</param> |
|
919 |
<param name = "defaultValue">Constant value to use as the default value for this column.</param> |
|
920 |
<param name = "defaultValueSql">SQL expression used as the default value for this column.</param> |
|
921 |
<param name = "name">The name of the column.</param> |
|
922 |
<param name = "storeType">Provider specific data type to use for this column.</param> |
|
923 |
<returns>The newly constructed column definition.</returns> |
|
924 |
</member> |
|
925 |
<member name="T:System.Data.Entity.Migrations.Builders.TableBuilder`1"> |
|
926 |
<summary> |
|
927 |
Helper class that is used to further configure a table being created from a CreateTable call on <see cref="T:System.Data.Entity.Migrations.DbMigration"/>. |
|
928 |
</summary> |
|
929 |
</member> |
|
930 |
<member name="M:System.Data.Entity.Migrations.Builders.TableBuilder`1.#ctor(System.Data.Entity.Migrations.Model.CreateTableOperation,System.Data.Entity.Migrations.DbMigration)"> |
|
931 |
<summary> |
|
932 |
Initializes a new instance of the TableBuilder class. |
|
933 |
</summary> |
|
934 |
<param name = "createTableOperation">The table creation operation to be further configured.</param> |
|
935 |
<param name = "migration">The migration the table is created in.</param> |
|
936 |
</member> |
|
937 |
<member name="M:System.Data.Entity.Migrations.Builders.TableBuilder`1.PrimaryKey(System.Linq.Expressions.Expression{System.Func{`0,System.Object}},System.String,System.Object)"> |
|
938 |
<summary> |
|
939 |
Specifies a primary key for the table. |
|
940 |
</summary> |
|
941 |
<param name = "keyExpression"> |
|
942 |
A lambda expression representing the property to be used as the primary key. |
|
943 |
C#: t => t.Id |
|
944 |
VB.Net: Function(t) t.Id |
|
945 |
|
|
946 |
If the primary key is made up of multiple properties then specify an anonymous type including the properties. |
|
947 |
C#: t => new { t.Id1, t.Id2 } |
|
948 |
VB.Net: Function(t) New With { t.Id1, t.Id2 } |
|
949 |
</param> |
|
950 |
<param name = "name"> |
|
951 |
The name of the primary key. |
|
952 |
If null is supplied, a default name will be generated.</param> |
|
953 |
<param name = "anonymousArguments"> |
|
954 |
Additional arguments that may be processed by providers. |
|
955 |
Use anonymous type syntax to specify arguments e.g. 'new { SampleArgument = "MyValue" }'. |
|
956 |
</param> |
|
957 |
<returns>Itself, so that multiple calls can be chained.</returns> |
|
958 |
</member> |
|
959 |
<member name="M:System.Data.Entity.Migrations.Builders.TableBuilder`1.Index(System.Linq.Expressions.Expression{System.Func{`0,System.Object}},System.Boolean,System.Object)"> |
|
960 |
<summary> |
|
961 |
Specifies an index to be created on the table. |
|
962 |
</summary> |
|
963 |
<param name = "indexExpression"> |
|
964 |
A lambda expression representing the property to be indexed. |
|
965 |
C#: t => t.PropertyOne |
|
966 |
VB.Net: Function(t) t.PropertyOne |
|
967 |
|
|
968 |
If multiple properties are to be indexed then specify an anonymous type including the properties. |
|
969 |
C#: t => new { t.PropertyOne, t.PropertyTwo } |
|
970 |
VB.Net: Function(t) New With { t.PropertyOne, t.PropertyTwo } |
|
971 |
</param> |
|
972 |
<param name = "unique">A value indicating whether or not this is a unique index.</param> |
|
973 |
<param name = "anonymousArguments"> |
|
974 |
Additional arguments that may be processed by providers. |
|
975 |
Use anonymous type syntax to specify arguments e.g. 'new { SampleArgument = "MyValue" }'. |
|
976 |
</param> |
|
977 |
<returns>Itself, so that multiple calls can be chained.</returns> |
|
978 |
</member> |
|
979 |
<member name="M:System.Data.Entity.Migrations.Builders.TableBuilder`1.ForeignKey(System.String,System.Linq.Expressions.Expression{System.Func{`0,System.Object}},System.Boolean,System.String,System.Object)"> |
|
980 |
<summary> |
|
981 |
Specifies a foreign key constraint to be created on the table. |
|
982 |
</summary> |
|
983 |
<param name = "principalTable">Name of the table that the foreign key constraint targets.</param> |
|
984 |
<param name = "dependentKeyExpression"> |
|
985 |
A lambda expression representing the properties of the foreign key. |
|
986 |
C#: t => t.PropertyOne |
|
987 |
VB.Net: Function(t) t.PropertyOne |
|
988 |
|
|
989 |
If multiple properties make up the foreign key then specify an anonymous type including the properties. |
|
990 |
C#: t => new { t.PropertyOne, t.PropertyTwo } |
|
991 |
VB.Net: Function(t) New With { t.PropertyOne, t.PropertyTwo }</param> |
|
992 |
<param name = "cascadeDelete"> |
|
993 |
A value indicating whether or not cascade delete should be configured on the foreign key constraint. |
|
994 |
</param> |
|
995 |
<param name = "name"> |
|
996 |
The name of this foreign key constraint. |
|
997 |
If no name is supplied, a default name will be calculated. |
|
998 |
</param> |
|
999 |
<param name = "anonymousArguments"> |
|
1000 |
Additional arguments that may be processed by providers. |
|
1001 |
Use anonymous type syntax to specify arguments e.g. 'new { SampleArgument = "MyValue" }'. |
|
1002 |
</param> |
|
1003 |
<returns>Itself, so that multiple calls can be chained.</returns> |
|
1004 |
</member> |
|
1005 |
<member name="T:System.Data.Entity.Migrations.DbMigration"> |
|
1006 |
<summary> |
|
1007 |
Base class for code-based migrations. |
|
1008 |
</summary> |
|
1009 |
</member> |
|
1010 |
<member name="M:System.Data.Entity.Migrations.DbMigration.Up"> |
|
1011 |
<summary> |
|
1012 |
Operations to be performed during the upgrade process. |
|
1013 |
</summary> |
|
1014 |
</member> |
|
1015 |
<member name="M:System.Data.Entity.Migrations.DbMigration.Down"> |
|
1016 |
<summary> |
|
1017 |
Operations to be performed during the downgrade process. |
|
1018 |
</summary> |
|
1019 |
</member> |
|
1020 |
<member name="M:System.Data.Entity.Migrations.DbMigration.CreateTable``1(System.String,System.Func{System.Data.Entity.Migrations.Builders.ColumnBuilder,``0},System.Object)"> |
|
1021 |
<summary> |
|
1022 |
Adds an operation to create a new table. |
|
1023 |
</summary> |
|
1024 |
<typeparam name = "TColumns"> |
|
1025 |
The columns in this create table operation. |
|
1026 |
You do not need to specify this type, it will be inferred from the columnsAction parameter you supply. |
|
1027 |
</typeparam> |
|
1028 |
<param name = "name">The name of the table. Schema name is optional, if no schema is specified then dbo is assumed.</param> |
|
1029 |
<param name = "columnsAction"> |
|
1030 |
An action that specifies the columns to be included in the table. |
|
1031 |
i.e. t => new { Id = t.Int(identity: true), Name = t.String() }</param> |
|
1032 |
<param name = "anonymousArguments"> |
|
1033 |
Additional arguments that may be processed by providers. |
|
1034 |
Use anonymous type syntax to specify arguments e.g. 'new { SampleArgument = "MyValue" }'. |
|
1035 |
</param> |
|
1036 |
<returns>An object that allows further configuration of the table creation operation.</returns> |
|
1037 |
</member> |
|
1038 |
<member name="M:System.Data.Entity.Migrations.DbMigration.AddForeignKey(System.String,System.String,System.String,System.String,System.Boolean,System.String,System.Object)"> |
|
1039 |
<summary> |
|
1040 |
Adds an operation to create a new foreign key constraint. |
|
1041 |
</summary> |
|
1042 |
<param name = "dependentTable"> |
|
1043 |
The table that contains the foreign key column. |
|
1044 |
Schema name is optional, if no schema is specified then dbo is assumed. |
|
1045 |
</param> |
|
1046 |
<param name = "dependentColumn">The foreign key column.</param> |
|
1047 |
<param name = "principalTable"> |
|
1048 |
The table that contains the column this foreign key references. |
|
1049 |
Schema name is optional, if no schema is specified then dbo is assumed. |
|
1050 |
</param> |
|
1051 |
<param name = "principalColumn"> |
|
1052 |
The column this foreign key references. |
|
1053 |
If no value is supplied the primary key of the principal table will be referenced. |
|
1054 |
</param> |
|
1055 |
<param name = "cascadeDelete"> |
|
1056 |
A value indicating if cascade delete should be configured for the foreign key relationship. |
|
1057 |
If no value is supplied, cascade delete will be off. |
|
1058 |
</param> |
|
1059 |
<param name = "name"> |
|
1060 |
The name of the foreign key constraint in the database. |
|
1061 |
If no value is supplied a unique name will be generated. |
|
1062 |
</param> |
|
1063 |
<param name = "anonymousArguments"> |
|
1064 |
Additional arguments that may be processed by providers. |
|
1065 |
Use anonymous type syntax to specify arguments e.g. 'new { SampleArgument = "MyValue" }'. |
|
1066 |
</param> |
|
1067 |
</member> |
|
1068 |
<member name="M:System.Data.Entity.Migrations.DbMigration.AddForeignKey(System.String,System.String[],System.String,System.String[],System.Boolean,System.String,System.Object)"> |
|
1069 |
<summary> |
|
1070 |
Adds an operation to create a new foreign key constraint. |
|
1071 |
</summary> |
|
1072 |
<param name = "dependentTable"> |
|
1073 |
The table that contains the foreign key columns. |
|
1074 |
Schema name is optional, if no schema is specified then dbo is assumed. |
|
1075 |
</param> |
|
1076 |
<param name = "dependentColumns">The foreign key columns.</param> |
|
1077 |
<param name = "principalTable"> |
|
1078 |
The table that contains the columns this foreign key references. |
|
1079 |
Schema name is optional, if no schema is specified then dbo is assumed. |
|
1080 |
</param> |
|
1081 |
<param name = "principalColumns"> |
|
1082 |
The columns this foreign key references. |
|
1083 |
If no value is supplied the primary key of the principal table will be referenced. |
|
1084 |
</param> |
|
1085 |
<param name = "cascadeDelete"> |
|
1086 |
A value indicating if cascade delete should be configured for the foreign key relationship. |
|
1087 |
If no value is supplied, cascade delete will be off. |
|
1088 |
</param> |
|
1089 |
<param name = "name"> |
|
1090 |
The name of the foreign key constraint in the database. |
|
1091 |
If no value is supplied a unique name will be generated. |
|
1092 |
</param> |
|
1093 |
<param name = "anonymousArguments"> |
|
1094 |
Additional arguments that may be processed by providers. |
|
1095 |
Use anonymous type syntax to specify arguments e.g. 'new { SampleArgument = "MyValue" }'. |
|
1096 |
</param> |
|
1097 |
</member> |
|
1098 |
<member name="M:System.Data.Entity.Migrations.DbMigration.DropForeignKey(System.String,System.String,System.Object)"> |
|
1099 |
<summary> |
|
1100 |
Adds an operation to drop a foreign key constraint based on its name. |
|
1101 |
</summary> |
|
1102 |
<param name = "dependentTable"> |
|
1103 |
The table that contains the foreign key column. |
|
1104 |
Schema name is optional, if no schema is specified then dbo is assumed. |
|
1105 |
</param> |
|
1106 |
<param name = "name">The name of the foreign key constraint in the database.</param> |
|
1107 |
<param name = "anonymousArguments"> |
|
1108 |
Additional arguments that may be processed by providers. |
|
1109 |
Use anonymous type syntax to specify arguments e.g. 'new { SampleArgument = "MyValue" }'. |
|
1110 |
</param> |
|
1111 |
</member> |
|
1112 |
<member name="M:System.Data.Entity.Migrations.DbMigration.DropForeignKey(System.String,System.String,System.String,System.String,System.Object)"> |
|
1113 |
<summary> |
|
1114 |
Adds an operation to drop a foreign key constraint based on the column it targets. |
|
1115 |
</summary> |
|
1116 |
<param name = "dependentTable"> |
|
1117 |
The table that contains the foreign key column. |
|
1118 |
Schema name is optional, if no schema is specified then dbo is assumed. |
|
1119 |
</param> |
|
1120 |
<param name = "dependentColumn">The foreign key column.</param> |
|
1121 |
<param name = "principalTable"> |
|
1122 |
The table that contains the column this foreign key references. |
|
1123 |
Schema name is optional, if no schema is specified then dbo is assumed. |
|
1124 |
</param> |
|
1125 |
<param name = "principalColumn">The columns this foreign key references.</param> |
|
1126 |
<param name = "anonymousArguments"> |
|
1127 |
Additional arguments that may be processed by providers. |
|
1128 |
Use anonymous type syntax to specify arguments e.g. 'new { SampleArgument = "MyValue" }'. |
|
1129 |
</param> |
|
1130 |
</member> |
|
1131 |
<member name="M:System.Data.Entity.Migrations.DbMigration.DropForeignKey(System.String,System.String[],System.String,System.Object)"> |
|
1132 |
<summary> |
|
1133 |
Adds an operation to drop a foreign key constraint based on the columns it targets. |
|
1134 |
</summary> |
|
1135 |
<param name = "dependentTable"> |
|
1136 |
The table that contains the foreign key columns. |
|
1137 |
Schema name is optional, if no schema is specified then dbo is assumed. |
|
1138 |
</param> |
|
1139 |
<param name = "dependentColumns">The foreign key columns.</param> |
|
1140 |
<param name = "principalTable"> |
|
1141 |
The table that contains the columns this foreign key references. |
|
1142 |
Schema name is optional, if no schema is specified then dbo is assumed. |
|
1143 |
</param> |
|
1144 |
<param name = "principalColumns">The columns this foreign key references.</param> |
|
1145 |
<param name = "anonymousArguments"> |
|
1146 |
Additional arguments that may be processed by providers. |
|
1147 |
Use anonymous type syntax to specify arguments e.g. 'new { SampleArgument = "MyValue" }'. |
|
1148 |
</param> |
|
1149 |
</member> |
|
1150 |
<member name="M:System.Data.Entity.Migrations.DbMigration.DropTable(System.String,System.Object)"> |
|
1151 |
<summary> |
|
1152 |
Adds an operation to drop a table. |
|
1153 |
</summary> |
|
1154 |
<param name = "name"> |
|
1155 |
The name of the table to be dropped. |
|
1156 |
Schema name is optional, if no schema is specified then dbo is assumed. |
|
1157 |
</param> |
|
1158 |
<param name = "anonymousArguments"> |
|
1159 |
Additional arguments that may be processed by providers. |
|
1160 |
Use anonymous type syntax to specify arguments e.g. 'new { SampleArgument = "MyValue" }'. |
|
1161 |
</param> |
|
1162 |
</member> |
|
1163 |
<member name="M:System.Data.Entity.Migrations.DbMigration.MoveTable(System.String,System.String,System.Object)"> |
|
1164 |
<summary> |
|
1165 |
Adds an operation to move a table to a new schema. |
|
1166 |
</summary> |
|
1167 |
<param name = "name"> |
|
1168 |
The name of the table to be moved. |
|
1169 |
Schema name is optional, if no schema is specified then dbo is assumed. |
|
1170 |
</param> |
|
1171 |
<param name = "newSchema">The schema the table is to be moved to.</param> |
|
1172 |
<param name = "anonymousArguments"> |
|
1173 |
Additional arguments that may be processed by providers. |
|
1174 |
Use anonymous type syntax to specify arguments e.g. 'new { SampleArgument = "MyValue" }'. |
|
1175 |
</param> |
|
1176 |
</member> |
|
1177 |
<member name="M:System.Data.Entity.Migrations.DbMigration.RenameTable(System.String,System.String,System.Object)"> |
|
1178 |
<summary> |
|
1179 |
Adds an operation to rename a table. To change the schema of a table use MoveTable |
|
1180 |
</summary> |
|
1181 |
<param name = "name"> |
|
1182 |
The name of the table to be renamed. |
|
1183 |
Schema name is optional, if no schema is specified then dbo is assumed. |
|
1184 |
</param> |
|
1185 |
<param name = "newName"> |
|
1186 |
The new name for the table. |
|
1187 |
Schema name is optional, if no schema is specified then dbo is assumed. |
|
1188 |
</param> |
|
1189 |
<param name = "anonymousArguments"> |
|
1190 |
Additional arguments that may be processed by providers. |
|
1191 |
Use anonymous type syntax to specify arguments e.g. 'new { SampleArgument = "MyValue" }'. |
|
1192 |
</param> |
|
1193 |
</member> |
|
1194 |
<member name="M:System.Data.Entity.Migrations.DbMigration.RenameColumn(System.String,System.String,System.String,System.Object)"> |
|
1195 |
<summary> |
|
1196 |
Adds an operation to rename a column. |
|
1197 |
</summary> |
|
1198 |
<param name = "table"> |
|
1199 |
The name of the table that contains the column to be renamed. |
|
1200 |
Schema name is optional, if no schema is specified then dbo is assumed. |
|
1201 |
</param> |
|
1202 |
<param name = "name">The name of the column to be renamed.</param> |
|
1203 |
<param name = "newName">The new name for the column.</param> |
|
1204 |
<param name = "anonymousArguments"> |
|
1205 |
Additional arguments that may be processed by providers. |
|
1206 |
Use anonymous type syntax to specify arguments e.g. 'new { SampleArgument = "MyValue" }'. |
|
1207 |
</param> |
|
1208 |
</member> |
|
1209 |
<member name="M:System.Data.Entity.Migrations.DbMigration.AddColumn(System.String,System.String,System.Func{System.Data.Entity.Migrations.Builders.ColumnBuilder,System.Data.Entity.Migrations.Model.ColumnModel},System.Object)"> |
|
1210 |
<summary> |
|
1211 |
Adds an operation to add a column to an existing table. |
|
1212 |
</summary> |
|
1213 |
<param name = "table"> |
|
1214 |
The name of the table to add the column to. |
|
1215 |
Schema name is optional, if no schema is specified then dbo is assumed. |
|
1216 |
</param> |
|
1217 |
<param name = "name"> |
|
1218 |
The name of the column to be added. |
|
1219 |
</param> |
|
1220 |
<param name = "columnAction"> |
|
1221 |
An action that specifies the column to be added. |
|
1222 |
i.e. c => c.Int(nullable: false, defaultValue: 3) |
|
1223 |
</param> |
|
1224 |
<param name = "anonymousArguments"> |
|
1225 |
Additional arguments that may be processed by providers. |
|
1226 |
Use anonymous type syntax to specify arguments e.g. 'new { SampleArgument = "MyValue" }'. |
|
1227 |
</param> |
|
1228 |
</member> |
|
1229 |
<member name="M:System.Data.Entity.Migrations.DbMigration.DropColumn(System.String,System.String,System.Object)"> |
|
1230 |
<summary> |
|
1231 |
Adds an operation to drop an existing column. |
|
1232 |
</summary> |
|
1233 |
<param name = "table"> |
|
1234 |
The name of the table to drop the column from. |
|
1235 |
Schema name is optional, if no schema is specified then dbo is assumed. |
|
1236 |
</param> |
|
1237 |
<param name = "name">The name of the column to be dropped.</param> |
|
1238 |
<param name = "anonymousArguments"> |
|
1239 |
Additional arguments that may be processed by providers. |
|
1240 |
Use anonymous type syntax to specify arguments e.g. 'new { SampleArgument = "MyValue" }'. |
|
1241 |
</param> |
|
1242 |
</member> |
|
1243 |
<member name="M:System.Data.Entity.Migrations.DbMigration.AlterColumn(System.String,System.String,System.Func{System.Data.Entity.Migrations.Builders.ColumnBuilder,System.Data.Entity.Migrations.Model.ColumnModel},System.Object)"> |
|
1244 |
<summary> |
|
1245 |
Adds an operation to alter the definition of an existing column. |
|
1246 |
</summary> |
|
1247 |
<param name = "table"> |
|
1248 |
The name of the table the column exists in. |
|
1249 |
Schema name is optional, if no schema is specified then dbo is assumed. |
|
1250 |
</param> |
|
1251 |
<param name = "name">The name of the column to be changed.</param> |
|
1252 |
<param name = "columnAction"> |
|
1253 |
An action that specifies the new definition for the column. |
|
1254 |
i.e. c => c.String(nullable: false, defaultValue: "none") |
|
1255 |
</param> |
|
1256 |
<param name = "anonymousArguments"> |
|
1257 |
Additional arguments that may be processed by providers. |
|
1258 |
Use anonymous type syntax to specify arguments e.g. 'new { SampleArgument = "MyValue" }'. |
|
1259 |
</param> |
|
1260 |
</member> |
|
1261 |
<member name="M:System.Data.Entity.Migrations.DbMigration.AddPrimaryKey(System.String,System.String,System.String,System.Object)"> |
|
1262 |
<summary> |
|
1263 |
Adds an operation to create a new primary key. |
|
1264 |
</summary> |
|
1265 |
<param name = "table"> |
|
1266 |
The table that contains the primary key column. |
|
1267 |
Schema name is optional, if no schema is specified then dbo is assumed. |
|
1268 |
</param> |
|
1269 |
<param name = "column">The primary key column.</param> |
|
1270 |
<param name = "name"> |
|
1271 |
The name of the primary key in the database. |
|
1272 |
If no value is supplied a unique name will be generated. |
|
1273 |
</param> |
|
1274 |
<param name = "anonymousArguments"> |
|
1275 |
Additional arguments that may be processed by providers. |
|
1276 |
Use anonymous type syntax to specify arguments e.g. 'new { SampleArgument = "MyValue" }'. |
|
1277 |
</param> |
|
1278 |
</member> |
|
1279 |
<member name="M:System.Data.Entity.Migrations.DbMigration.AddPrimaryKey(System.String,System.String[],System.String,System.Object)"> |
|
1280 |
<summary> |
|
1281 |
Adds an operation to create a new primary key based on multiple columns. |
|
1282 |
</summary> |
|
1283 |
<param name = "table"> |
|
1284 |
The table that contains the primary key columns. |
|
1285 |
Schema name is optional, if no schema is specified then dbo is assumed. |
|
1286 |
</param> |
|
1287 |
<param name = "columns">The primary key columns.</param> |
|
1288 |
<param name = "name"> |
|
1289 |
The name of the primary key in the database. |
|
1290 |
If no value is supplied a unique name will be generated. |
|
1291 |
</param> |
|
1292 |
<param name = "anonymousArguments"> |
|
1293 |
Additional arguments that may be processed by providers. |
|
1294 |
Use anonymous type syntax to specify arguments e.g. 'new { SampleArgument = "MyValue" }'. |
|
1295 |
</param> |
|
1296 |
</member> |
|
1297 |
<member name="M:System.Data.Entity.Migrations.DbMigration.DropPrimaryKey(System.String,System.String,System.Object)"> |
|
1298 |
<summary> |
|
1299 |
Adds an operation to drop an existing primary key that does not have the default name. |
|
1300 |
</summary> |
|
1301 |
<param name = "table"> |
|
1302 |
The table that contains the primary key column. |
|
1303 |
Schema name is optional, if no schema is specified then dbo is assumed. |
|
1304 |
</param> |
|
1305 |
<param name = "name">The name of the primary key to be dropped.</param> |
|
1306 |
<param name = "anonymousArguments"> |
|
1307 |
Additional arguments that may be processed by providers. |
|
1308 |
Use anonymous type syntax to specify arguments e.g. 'new { SampleArgument = "MyValue" }'. |
|
1309 |
</param> |
|
1310 |
</member> |
|
1311 |
<member name="M:System.Data.Entity.Migrations.DbMigration.DropPrimaryKey(System.String,System.Object)"> |
|
1312 |
<summary> |
|
1313 |
Adds an operation to drop an existing primary key that was created with the default name. |
|
1314 |
</summary> |
|
1315 |
<param name = "table"> |
|
1316 |
The table that contains the primary key column. |
|
1317 |
Schema name is optional, if no schema is specified then dbo is assumed. |
|
1318 |
</param> |
|
1319 |
<param name = "anonymousArguments"> |
|
1320 |
Additional arguments that may be processed by providers. |
|
1321 |
Use anonymous type syntax to specify arguments e.g. 'new { SampleArgument = "MyValue" }'. |
|
1322 |
</param> |
|
1323 |
</member> |
|
1324 |
<member name="M:System.Data.Entity.Migrations.DbMigration.CreateIndex(System.String,System.String,System.Boolean,System.String,System.Object)"> |
|
1325 |
<summary> |
|
1326 |
Adds an operation to create an index on a single column. |
|
1327 |
</summary> |
|
1328 |
<param name = "table"> |
|
1329 |
The name of the table to create the index on. |
|
1330 |
Schema name is optional, if no schema is specified then dbo is assumed. |
|
1331 |
</param> |
|
1332 |
<param name = "column">The name of the column to create the index on.</param> |
|
1333 |
<param name = "unique"> |
|
1334 |
A value indicating if this is a unique index. |
|
1335 |
If no value is supplied a non-unique index will be created. |
|
1336 |
</param> |
|
1337 |
<param name = "name"> |
|
1338 |
The name to use for the index in the database. |
|
1339 |
If no value is supplied a unique name will be generated. |
|
1340 |
</param> |
|
1341 |
<param name = "anonymousArguments"> |
|
1342 |
Additional arguments that may be processed by providers. |
|
1343 |
Use anonymous type syntax to specify arguments e.g. 'new { SampleArgument = "MyValue" }'. |
|
1344 |
</param> |
|
1345 |
</member> |
|
1346 |
<member name="M:System.Data.Entity.Migrations.DbMigration.CreateIndex(System.String,System.String[],System.Boolean,System.String,System.Object)"> |
|
1347 |
<summary> |
|
1348 |
Adds an operation to create an index on multiple columns. |
|
1349 |
</summary> |
|
1350 |
<param name = "table"> |
|
1351 |
The name of the table to create the index on. |
|
1352 |
Schema name is optional, if no schema is specified then dbo is assumed. |
|
1353 |
</param> |
내보내기 Unified diff