-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSharp.MySQL.Migrations.xml
More file actions
481 lines (481 loc) · 18.9 KB
/
Sharp.MySQL.Migrations.xml
File metadata and controls
481 lines (481 loc) · 18.9 KB
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
<?xml version="1.0"?>
<doc>
<assembly>
<name>Sharp.MySQL.Migrations</name>
</assembly>
<members>
<member name="T:Sharp.MySQL.Migrations.Attributes.AutoIncrementAttribute">
<summary>
Defines a property as AutoIncrement. Property MUST be INT and NotNull (see about TypeFieldBDAttribute to set as NotNull).
</summary>
</member>
<member name="T:Sharp.MySQL.Migrations.Attributes.DecimalPrecisionAttribute">
<summary>
Attribute for decimal types to define the precision.
</summary>
</member>
<member name="P:Sharp.MySQL.Migrations.Attributes.DecimalPrecisionAttribute.DecimalSpaces">
<summary>
Number of spaces after comma (precision). This value takes spaces from Length (TypeFieldBD Size).
</summary>
</member>
<member name="M:Sharp.MySQL.Migrations.Attributes.DecimalPrecisionAttribute.#ctor(System.Int32)">
<summary>
Constructor of class
</summary>
<param name="decimalSpaces">Number of spaces after comma (precision). This value takes spaces from Length (TypeFieldBD Size).</param>
</member>
<member name="T:Sharp.MySQL.Migrations.Attributes.IgnoreAttribute">
<summary>
Attribute to bem used to exclude fields from migration
</summary>
</member>
<member name="T:Sharp.MySQL.Migrations.Attributes.NameAttribute">
<summary>
Attribute to set the name of a class or field. If not set, the name will be the property or class
</summary>
</member>
<member name="P:Sharp.MySQL.Migrations.Attributes.NameAttribute.Name">
<summary>
Name to be set
</summary>
</member>
<member name="M:Sharp.MySQL.Migrations.Attributes.NameAttribute.#ctor(System.String)">
<summary>
Constructor of class
</summary>
<param name="name">Name to be set</param>
</member>
<member name="T:Sharp.MySQL.Migrations.Attributes.PrimaryKeyAttribute">
<summary>
Defines a property as PrimaryKey. It's recommended to use with an INT property
</summary>
</member>
<member name="T:Sharp.MySQL.Migrations.Attributes.TypeField">
<summary>
Enums of field types in MySQL
</summary>
</member>
<member name="F:Sharp.MySQL.Migrations.Attributes.TypeField.NOT_SET">
<summary>
Field type not set
</summary>
</member>
<member name="F:Sharp.MySQL.Migrations.Attributes.TypeField.CHAR">
<summary>
CHAR type
</summary>
</member>
<member name="F:Sharp.MySQL.Migrations.Attributes.TypeField.NCHAR">
<summary>
CHAR type with unicode support.
</summary>
</member>
<member name="F:Sharp.MySQL.Migrations.Attributes.TypeField.VARCHAR">
<summary>
VARCHAR type variable size
</summary>
</member>
<member name="F:Sharp.MySQL.Migrations.Attributes.TypeField.NVARCHAR">
<summary>
VARCHAR type with unicode support and variable size
</summary>
</member>
<member name="F:Sharp.MySQL.Migrations.Attributes.TypeField.TINYINT">
<summary>
TINYINT type
</summary>
</member>
<member name="F:Sharp.MySQL.Migrations.Attributes.TypeField.INT">
<summary>
INT type
</summary>
</member>
<member name="F:Sharp.MySQL.Migrations.Attributes.TypeField.BIGINT">
<summary>
BIGINT type
</summary>
</member>
<member name="F:Sharp.MySQL.Migrations.Attributes.TypeField.BINARY">
<summary>
BINARY type
</summary>
</member>
<member name="F:Sharp.MySQL.Migrations.Attributes.TypeField.VARBINARY">
<summary>
BINARY type with variable size
</summary>
</member>
<member name="F:Sharp.MySQL.Migrations.Attributes.TypeField.DATE">
<summary>
ONLY DATE type
</summary>
</member>
<member name="F:Sharp.MySQL.Migrations.Attributes.TypeField.DATETIME">
<summary>
DATETIME type
</summary>
</member>
<member name="F:Sharp.MySQL.Migrations.Attributes.TypeField.TIMESTAMP">
<summary>
A number between '1970-01-01 00:00:01' UTC and '2038-01-19 03:14:07' UTC
</summary>
</member>
<member name="F:Sharp.MySQL.Migrations.Attributes.TypeField.DECIMAL">
<summary>
Decimal values. Pattern if TypeFieldBD.Size and DecimalPrecision.DecimalSpaces not defined: (12,3).
</summary>
</member>
<member name="F:Sharp.MySQL.Migrations.Attributes.TypeField.TIME">
<summary>
TIME values
</summary>
</member>
<member name="T:Sharp.MySQL.Migrations.Attributes.TypeFieldBD">
<summary>
Configure the fields in database.
</summary>
</member>
<member name="P:Sharp.MySQL.Migrations.Attributes.TypeFieldBD.TypeField">
<summary>
Sets the field type
</summary>
</member>
<member name="P:Sharp.MySQL.Migrations.Attributes.TypeFieldBD.SizeField">
<summary>
Sets the field length
</summary>
</member>
<member name="P:Sharp.MySQL.Migrations.Attributes.TypeFieldBD.NotNull">
<summary>
Define if it will be NOT NULL if true or NULL if false
</summary>
</member>
<member name="P:Sharp.MySQL.Migrations.Attributes.TypeFieldBD.DefaultValue">
<summary>
Sets the default value expression to be setted in the database
</summary>
</member>
<member name="M:Sharp.MySQL.Migrations.Attributes.TypeFieldBD.#ctor(Sharp.MySQL.Migrations.Attributes.TypeField)">
<summary>
Configure the fields in database.
</summary>
<param name="typeField">Sets the field type</param>
</member>
<member name="M:Sharp.MySQL.Migrations.Attributes.TypeFieldBD.#ctor(Sharp.MySQL.Migrations.Attributes.TypeField,System.Boolean)">
<summary>
Configure the fields in database.
</summary>
<param name="typeField">Sets the field type</param>
<param name="notNull">Define if it will be NOT NULL if true or NULL if false</param>
</member>
<member name="M:Sharp.MySQL.Migrations.Attributes.TypeFieldBD.#ctor(Sharp.MySQL.Migrations.Attributes.TypeField,System.Int32)">
<summary>
Configure the fields in database.
NotNull is set to False
</summary>
<param name="typeField">Sets the field type</param>
<param name="size">Sets the field length</param>
</member>
<member name="M:Sharp.MySQL.Migrations.Attributes.TypeFieldBD.#ctor(Sharp.MySQL.Migrations.Attributes.TypeField,System.Int32,System.Boolean,System.String)">
<summary>
Configure the fields in database.
</summary>
<param name="typeField">Sets the field type</param>
<param name="size">Sets the field length</param>
<param name="notNull">Define if it will be NOT NULL if true or NULL if false</param>
<param name="defaultValue">Sets the default value to be stored in database if the field is not filled</param>
</member>
<member name="M:Sharp.MySQL.Migrations.Attributes.TypeFieldBD.#ctor(Sharp.MySQL.Migrations.Attributes.TypeField,System.Int32,System.String)">
<summary>
Configure the fields in database.
</summary>
<param name="typeField">Sets the field type</param>
<param name="size">Sets the field length</param>
<param name="defaultValue">Sets the default value to be stored in database if the field is not filled</param>
</member>
<member name="T:Sharp.MySQL.Migrations.Attributes.UniqueAttribute">
<summary>
Defines a property as Unique INDEX.
</summary>
</member>
<member name="T:Sharp.MySQL.Migrations.Core.ColumnMapper">
<summary>
Models classes mapper attributes
</summary>
</member>
<member name="P:Sharp.MySQL.Migrations.Core.ColumnMapper.Columns">
<summary>
Properties from the class
</summary>
</member>
<member name="T:Sharp.MySQL.Migrations.Core.ISchemaChange">
<summary>
Interface base to class SchemaChanges
</summary>
</member>
<member name="P:Sharp.MySQL.Migrations.Core.ISchemaChange.SchemaVersion">
<summary>
Version of changes
</summary>
</member>
<member name="M:Sharp.MySQL.Migrations.Core.ISchemaChange.Initialize(Sharp.MySQL.ConnectionFactory)">
<summary>
Initializes the schema change
</summary>
<param name="factory">A connection to MySQLDB</param>
</member>
<member name="M:Sharp.MySQL.Migrations.Core.ISchemaChange.CanRun">
<summary>
Sets if the change can runs
</summary>
<returns>True or false</returns>
</member>
<member name="M:Sharp.MySQL.Migrations.Core.ISchemaChange.Run">
<summary>
Execute changes
</summary>
</member>
<member name="T:Sharp.MySQL.Migrations.Core.Models.Columns">
<summary>
Properties from a class that represent the columns in database
</summary>
</member>
<member name="P:Sharp.MySQL.Migrations.Core.Models.Columns.NameField">
<summary>
Property name
</summary>
</member>
<member name="P:Sharp.MySQL.Migrations.Core.Models.Columns.IsPk">
<summary>
Is Primary Key
</summary>
</member>
<member name="P:Sharp.MySQL.Migrations.Core.Models.Columns.IsAI">
<summary>
Is Auto Increment
</summary>
</member>
<member name="P:Sharp.MySQL.Migrations.Core.Models.Columns.IsUnique">
<summary>
Is Unique Index
</summary>
</member>
<member name="P:Sharp.MySQL.Migrations.Core.Models.Columns.NotNull">
<summary>
Is Not Null
</summary>
</member>
<member name="P:Sharp.MySQL.Migrations.Core.Models.Columns.DecimalPrecision">
<summary>
Is Decimal Property
</summary>
</member>
<member name="P:Sharp.MySQL.Migrations.Core.Models.Columns.DefaultValue">
<summary>
Default value
</summary>
</member>
<member name="P:Sharp.MySQL.Migrations.Core.Models.Columns.TypeField">
<summary>
Property type
</summary>
</member>
<member name="P:Sharp.MySQL.Migrations.Core.Models.Columns.SizeField">
<summary>
Property size
</summary>
</member>
<member name="T:Sharp.MySQL.Migrations.Core.Models.MigrationResult">
<summary>
Result of migration
</summary>
</member>
<member name="P:Sharp.MySQL.Migrations.Core.Models.MigrationResult.FirstSchemaVersion">
<summary>
First version
</summary>
</member>
<member name="P:Sharp.MySQL.Migrations.Core.Models.MigrationResult.LastSchemaVersion">
<summary>
Last version of changes
</summary>
</member>
<member name="P:Sharp.MySQL.Migrations.Core.Models.MigrationResult.tables">
<summary>
Results of tables migration
</summary>
</member>
<member name="T:Sharp.MySQL.Migrations.Core.Models.Schema_Changes">
<summary>
Table in database to store schema changes
</summary>
</member>
<member name="P:Sharp.MySQL.Migrations.Core.Models.Schema_Changes.Schema_Id">
<summary>
Id of schema
</summary>
</member>
<member name="P:Sharp.MySQL.Migrations.Core.Models.Schema_Changes.Schema_Version">
<summary>
Schema version
</summary>
</member>
<member name="P:Sharp.MySQL.Migrations.Core.Models.Schema_Changes.Schema_Changed">
<summary>
Datetime when the change occured
</summary>
</member>
<member name="T:Sharp.MySQL.Migrations.Core.Models.TableResult">
<summary>
Result of migration
</summary>
</member>
<member name="P:Sharp.MySQL.Migrations.Core.Models.TableResult.TableName">
<summary>
Table name
</summary>
</member>
<member name="P:Sharp.MySQL.Migrations.Core.Models.TableResult.WasCreated">
<summary>
Indicates if the table was created
</summary>
</member>
<member name="P:Sharp.MySQL.Migrations.Core.Models.TableResult.WasModified">
<summary>
Indicates if the table was modified
</summary>
</member>
<member name="P:Sharp.MySQL.Migrations.Core.Models.TableResult.ColumnsAdded">
<summary>
Indicates how many columns was added
</summary>
</member>
<member name="T:Sharp.MySQL.Migrations.Core.TableMapper">
<summary>
Class model that represents a table in database
</summary>
</member>
<member name="P:Sharp.MySQL.Migrations.Core.TableMapper.TableName">
<summary>
Table name (class name)
</summary>
</member>
<member name="P:Sharp.MySQL.Migrations.Core.TableMapper.Columns">
<summary>
Properties from a class that represent the columns in database
</summary>
</member>
<member name="T:Sharp.MySQL.Migrations.Exceptions.InvalidAttributeException">
<summary>
Exception when is detect an invalid use of a property
</summary>
</member>
<member name="M:Sharp.MySQL.Migrations.Exceptions.InvalidAttributeException.#ctor(System.String)">
<summary>
Constructor of the exception
</summary>
<param name="message">Message to show when the exception is thrown</param>
</member>
<member name="T:Sharp.MySQL.Migrations.Exceptions.NullAttributeException">
<summary>
Exception when is detect an null property
</summary>
</member>
<member name="M:Sharp.MySQL.Migrations.Exceptions.NullAttributeException.#ctor(System.String)">
<summary>
Constructor of the exception
</summary>
<param name="message">Message to show when the exception is thrown</param>
</member>
<member name="T:Sharp.MySQL.Migrations.Helpers.DapperHelper">
<summary>
Class with dapper helpers
</summary>
</member>
<member name="M:Sharp.MySQL.Migrations.Helpers.DapperHelper.MapMySqlGuidHandler">
<summary>
Maps a handler to Guids in MySQL, which allows to store guids as BINARY
</summary>
</member>
<member name="T:Sharp.MySQL.Migrations.TypesHandler.MySqlGuidHandler">
<summary>
Guid handler for mysqls db
</summary>
</member>
<member name="M:Sharp.MySQL.Migrations.TypesHandler.MySqlGuidHandler.Parse(System.Object)">
<summary>
Parsers a binary value to guid
</summary>
<param name="value"></param>
<returns></returns>
</member>
<member name="M:Sharp.MySQL.Migrations.TypesHandler.MySqlGuidHandler.SetValue(System.Data.IDbDataParameter,System.Guid)">
<summary>
Parsers a guid value to binary
</summary>
<param name="parameter">Object in bytearray</param>
<param name="value">Guid to be converted in bytearray</param>
</member>
<member name="T:Sharp.MySQL.ConnectionFactory">
<summary>
Connection factory class
</summary>
</member>
<member name="P:Sharp.MySQL.ConnectionFactory.ConnectionString">
<summary>
Connection string to reach the MySQL database
</summary>
</member>
<member name="M:Sharp.MySQL.ConnectionFactory.#ctor(System.String)">
<summary>
Constructor to fill the ConnectionString
</summary>
<param name="cnnString">Connection string to reach the MySQL database</param>
</member>
<member name="M:Sharp.MySQL.ConnectionFactory.GetConnection">
<summary>
Opens a connection to the database
</summary>
<returns>An open connection of the database</returns>
</member>
<member name="T:Sharp.MySQL.Migration">
<summary>
Class that contains functions to migration
</summary>
</member>
<member name="M:Sharp.MySQL.Migration.#ctor(Sharp.MySQL.ConnectionFactory)">
<summary>
Constructor class
</summary>
<param name="dbFac">Connection factory</param>
</member>
<member name="M:Sharp.MySQL.Migration.Add``1">
<summary>
Function to add models to migration
</summary>
<typeparam name="T">Model class</typeparam>
<returns>A list of table mapper</returns>
</member>
<member name="M:Sharp.MySQL.Migration.AddModel``1">
<summary>
Function to add models to migration
</summary>
<typeparam name="T">Model class</typeparam>
<returns>A list of table mapper</returns>
</member>
<member name="M:Sharp.MySQL.Migration.AddChange``1">
<summary>
Adds schemas changes to be executed in Migration
</summary>
<typeparam name="T">Change to be executed</typeparam>
<returns>The object</returns>
</member>
<member name="M:Sharp.MySQL.Migration.Migrate">
<summary>
Fuction that executes the migration
</summary>
<returns>An array of table result</returns>
</member>
</members>
</doc>