OpenSource » Database Migrator » Migrator2
Clone URL:  
Pushed to one repository · View In Graph Contained in tip

Migrator Merge with Migrator-brette

Changeset b3a93018aa68

Parents 1b5faf072403

Parents a4f972cbcfb1

by Profile picture of Brette L ScottBrette L Scott

Changes to 81 files · Browse files at b3a93018aa68 Showing diff from parent 1b5faf072403 a4f972cbcfb1 Diff from another changeset...

 
47
48
49
 
 
 
 
 
 
50
51
52
 
62
63
64
 
65
66
67
 
 
68
69
70
 
 
 
 
 
71
72
73
 
111
112
113
 
 
 
 
 
 
114
115
116
 
47
48
49
50
51
52
53
54
55
56
57
58
 
68
69
70
71
72
 
 
73
74
75
 
 
76
77
78
79
80
81
82
83
 
121
122
123
124
125
126
127
128
129
130
131
132
@@ -47,6 +47,12 @@
  <DocumentationFile>bin\Migrator\Release\Migrator.XML</DocumentationFile>   </PropertyGroup>   <ItemGroup> + <Reference Include="EntityFramework"> + <HintPath>..\..\packages\EntityFramework.6.0.2\lib\net40\EntityFramework.dll</HintPath> + </Reference> + <Reference Include="EntityFramework.SqlServer"> + <HintPath>..\..\packages\EntityFramework.6.0.2\lib\net40\EntityFramework.SqlServer.dll</HintPath> + </Reference>   <Reference Include="log4net, Version=1.2.12.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a, processorArchitecture=MSIL">   <SpecificVersion>False</SpecificVersion>   <HintPath>..\..\packages\log4net.2.0.2\lib\net40-full\log4net.dll</HintPath> @@ -62,12 +68,16 @@
  <HintPath>..\..\lib\Npgsql\net-4.0\Npgsql.dll</HintPath>   </Reference>   <Reference Include="System" /> + <Reference Include="System.ComponentModel.DataAnnotations" />   <Reference Include="System.Data" /> - <Reference Include="System.Data.SQLite, Version=1.0.84.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139, processorArchitecture=x86"> - <HintPath>..\..\lib\System.Data.SQLite.dll</HintPath> + <Reference Include="System.Data.SQLite"> + <HintPath>..\..\packages\System.Data.SQLite.Core.1.0.92.0\lib\net40\System.Data.SQLite.dll</HintPath>   </Reference> - <Reference Include="System.Data.SQLite.Linq, Version=1.0.84.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139, processorArchitecture=MSIL"> - <HintPath>..\..\lib\System.Data.SQLite.Linq.dll</HintPath> + <Reference Include="System.Data.SQLite.EF6"> + <HintPath>..\..\packages\System.Data.SQLite.EF6.1.0.92.0\lib\net40\System.Data.SQLite.EF6.dll</HintPath> + </Reference> + <Reference Include="System.Data.SQLite.Linq"> + <HintPath>..\..\packages\System.Data.SQLite.Linq.1.0.92.0\lib\net40\System.Data.SQLite.Linq.dll</HintPath>   </Reference>   <Reference Include="System.Web" />   <Reference Include="System.Xml" /> @@ -111,6 +121,12 @@
  </ItemGroup>   <ItemGroup>   <Content Include="testfolder\test.txt" /> + <Content Include="x64\SQLite.Interop.dll"> + <CopyToOutputDirectory>Always</CopyToOutputDirectory> + </Content> + <Content Include="x86\SQLite.Interop.dll"> + <CopyToOutputDirectory>Always</CopyToOutputDirectory> + </Content>   </ItemGroup>   <ItemGroup>   <None Include="app.config" />
 
1
 
2
3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
 
@@ -1,3 +1,29 @@
-<?xml version="1.0"?> +<?xml version="1.0" encoding="utf-8"?>  <configuration> - <startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration> + <configSections> + <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --> + <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /> + </configSections> + <startup> + <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" /> + </startup> + <system.data> + <DbProviderFactories> + <remove invariant="System.Data.SQLite" /> + <add name="SQLite Data Provider" invariant="System.Data.SQLite" description=".Net Framework Data Provider for SQLite" type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite" /> + <remove invariant="System.Data.SQLite.EF6" /> + <add name="SQLite Data Provider (Entity Framework 6)" invariant="System.Data.SQLite.EF6" description=".Net Framework Data Provider for SQLite (Entity Framework 6)" type="System.Data.SQLite.EF6.SQLiteProviderFactory, System.Data.SQLite.EF6" /> + </DbProviderFactories> + </system.data> + <entityFramework> + <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework"> + <parameters> + <parameter value="v11.0" /> + </parameters> + </defaultConnectionFactory> + <providers> + <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" /> + <provider invariantName="System.Data.SQLite.EF6" type="System.Data.SQLite.EF6.SQLiteProviderServices, System.Data.SQLite.EF6" /> + </providers> + </entityFramework> +</configuration> \ No newline at end of file
 
1
2
 
3
 
 
 
 
4
 
 
1
2
3
4
5
6
7
8
9
 
@@ -1,4 +1,9 @@
 ï»¿<?xml version="1.0" encoding="utf-8"?>  <packages> + <package id="EntityFramework" version="6.0.2" targetFramework="net40" />   <package id="log4net" version="2.0.2" targetFramework="net40" /> + <package id="System.Data.SQLite" version="1.0.92.0" targetFramework="net40" /> + <package id="System.Data.SQLite.Core" version="1.0.92.0" targetFramework="net40" /> + <package id="System.Data.SQLite.EF6" version="1.0.92.0" targetFramework="net40" /> + <package id="System.Data.SQLite.Linq" version="1.0.92.0" targetFramework="net40" />  </packages> \ No newline at end of file
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
 
@@ -0,0 +1,21 @@
+<?xml version="1.0"?> +<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"> + <metadata> + <id>EntityFramework</id> + <version>6.0.2</version> + <title>EntityFramework</title> + <authors>Microsoft</authors> + <owners>Microsoft</owners> + <licenseUrl>http://go.microsoft.com/fwlink/?LinkID=320539</licenseUrl> + <projectUrl>http://go.microsoft.com/fwlink/?LinkID=320540</projectUrl> + <iconUrl>http://go.microsoft.com/fwlink/?LinkID=386613</iconUrl> + <requireLicenseAcceptance>true</requireLicenseAcceptance> + <description>Entity Framework is Microsoft's recommended data access technology for new applications.</description> + <summary>Entity Framework is Microsoft's recommended data access technology for new applications.</summary> + <language>en-US</language> + <tags>Microsoft EF Database Data O/RM ADO.NET</tags> + <frameworkAssemblies> + <frameworkAssembly assemblyName="System.ComponentModel.DataAnnotations" targetFramework="" /> + </frameworkAssemblies> + </metadata> +</package> \ No newline at end of file
 
 
 
 
 
 
 
1
2
3
4
5
@@ -0,0 +1,5 @@
+<configuration> + <configSections> + <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --> + </configSections> +</configuration>
 
 
 
 
 
 
 
1
2
3
4
5
@@ -0,0 +1,5 @@
+<configuration> + <configSections> + <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --> + </configSections> +</configuration>
 
 
This file's diff was not loaded because this changeset is very large. Load changes
 
 
This file's diff was not loaded because this changeset is very large. Load changes
 
 
This file's diff was not loaded because this changeset is very large. Load changes
 
 
This file's diff was not loaded because this changeset is very large. Load changes
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
@@ -0,0 +1,1054 @@
+# Copyright (c) Microsoft Corporation. All rights reserved. + +$InitialDatabase = '0' + +$knownExceptions = @( + 'System.Data.Entity.Migrations.Infrastructure.MigrationsException', + 'System.Data.Entity.Migrations.Infrastructure.AutomaticMigrationsDisabledException', + 'System.Data.Entity.Migrations.Infrastructure.AutomaticDataLossException', + 'System.Data.Entity.Migrations.Infrastructure.MigrationsPendingException', + 'System.Data.Entity.Migrations.ProjectTypeNotSupportedException' +) + +<# +.SYNOPSIS + Adds or updates an Entity Framework provider entry in the project config + file. + +.DESCRIPTION + Adds an entry into the 'entityFramework' section of the project config + file for the specified provider invariant name and provider type. If an + entry for the given invariant name already exists, then that entry is + updated with the given type name, unless the given type name already + matches, in which case no action is taken. The 'entityFramework' + section is added if it does not exist. The config file is automatically + saved if and only if a change was made. + + This command is typically used only by Entity Framework provider NuGet + packages and is run from the 'install.ps1' script. + +.PARAMETER Project + The Visual Studio project to update. When running in the NuGet install.ps1 + script the '$project' variable provided as part of that script should be + used. + +.PARAMETER InvariantName + The provider invariant name that uniquely identifies this provider. For + example, the Microsoft SQL Server provider is registered with the invariant + name 'System.Data.SqlClient'. + +.PARAMETER TypeName + The assembly-qualified type name of the provider-specific type that + inherits from 'System.Data.Entity.Core.Common.DbProviderServices'. For + example, for the Microsoft SQL Server provider, this type is + 'System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer'. +#> +function Add-EFProvider +{ + param ( + [parameter(Position = 0, + Mandatory = $true)] + $Project, + [parameter(Position = 1, + Mandatory = $true)] + [string] $InvariantName, + [parameter(Position = 2, + Mandatory = $true)] + [string] $TypeName + ) + + Check-Project $project + + $runner = New-EFConfigRunner $Project + + try + { + Invoke-RunnerCommand $runner System.Data.Entity.ConnectionFactoryConfig.AddProviderCommand @( $InvariantName, $TypeName ) + $error = Get-RunnerError $runner + + if ($error) + { + if ($knownExceptions -notcontains $error.TypeName) + { + Write-Host $error.StackTrace + } + else + { + Write-Verbose $error.StackTrace + } + + throw $error.Message + } + } + finally + { + Remove-Runner $runner + } +} + +<# +.SYNOPSIS + Adds or updates an Entity Framework default connection factory in the + project config file. + +.DESCRIPTION + Adds an entry into the 'entityFramework' section of the project config + file for the connection factory that Entity Framework will use by default + when creating new connections by convention. Any existing entry will be + overridden if it does not match. The 'entityFramework' section is added if + it does not exist. The config file is automatically saved if and only if + a change was made. + + This command is typically used only by Entity Framework provider NuGet + packages and is run from the 'install.ps1' script. + +.PARAMETER Project + The Visual Studio project to update. When running in the NuGet install.ps1 + script the '$project' variable provided as part of that script should be + used. + +.PARAMETER TypeName + The assembly-qualified type name of the connection factory type that + implements the 'System.Data.Entity.Infrastructure.IDbConnectionFactory' + interface. For example, for the Microsoft SQL Server Express provider + connection factory, this type is + 'System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework'. + +.PARAMETER ConstructorArguments + An optional array of strings that will be passed as arguments to the + connection factory type constructor. +#> +function Add-EFDefaultConnectionFactory +{ + param ( + [parameter(Position = 0, + Mandatory = $true)] + $Project, + [parameter(Position = 1, + Mandatory = $true)] + [string] $TypeName, + [string[]] $ConstructorArguments + ) + + Check-Project $project + + $runner = New-EFConfigRunner $Project + + try + { + Invoke-RunnerCommand $runner System.Data.Entity.ConnectionFactoryConfig.AddDefaultConnectionFactoryCommand @( $TypeName, $ConstructorArguments ) + $error = Get-RunnerError $runner + + if ($error) + { + if ($knownExceptions -notcontains $error.TypeName) + { + Write-Host $error.StackTrace + } + else + { + Write-Verbose $error.StackTrace + } + + throw $error.Message + } + } + finally + { + Remove-Runner $runner + } +} + +<# +.SYNOPSIS + Initializes the Entity Framework section in the project config file + and sets defaults. + +.DESCRIPTION + Creates the 'entityFramework' section of the project config file and sets + the default connection factory to use SQL Express if it is running on the + machine, or LocalDb otherwise. Note that installing a different provider + may change the default connection factory. The config file is + automatically saved if and only if a change was made. + + In addition, any reference to 'System.Data.Entity.dll' in the project is + removed. + + This command is typically used only by Entity Framework provider NuGet + packages and is run from the 'install.ps1' script. + +.PARAMETER Project + The Visual Studio project to update. When running in the NuGet install.ps1 + script the '$project' variable provided as part of that script should be + used. +#> +function Initialize-EFConfiguration +{ + param ( + [parameter(Position = 0, + Mandatory = $true)] + $Project + ) + + Check-Project $project + + $runner = New-EFConfigRunner $Project + + try + { + Invoke-RunnerCommand $runner System.Data.Entity.ConnectionFactoryConfig.InitializeEntityFrameworkCommand + $error = Get-RunnerError $runner + + if ($error) + { + if ($knownExceptions -notcontains $error.TypeName) + { + Write-Host $error.StackTrace + } + else + { + Write-Verbose $error.StackTrace + } + + throw $error.Message + } + } + finally + { + Remove-Runner $runner + } +} + +<# +.SYNOPSIS + Enables Code First Migrations in a project. + +.DESCRIPTION + Enables Migrations by scaffolding a migrations configuration class in the project. If the + target database was created by an initializer, an initial migration will be created (unless + automatic migrations are enabled via the EnableAutomaticMigrations parameter). + +.PARAMETER ContextTypeName + Specifies the context to use. If omitted, migrations will attempt to locate a + single context type in the target project. + +.PARAMETER EnableAutomaticMigrations + Specifies whether automatic migrations will be enabled in the scaffolded migrations configuration. + If omitted, automatic migrations will be disabled. + +.PARAMETER MigrationsDirectory + Specifies the name of the directory that will contain migrations code files. + If omitted, the directory will be named "Migrations". + +.PARAMETER ProjectName + Specifies the project that the scaffolded migrations configuration class will + be added to. If omitted, the default project selected in package manager + console is used. + +.PARAMETER StartUpProjectName + Specifies the configuration file to use for named connection strings. If + omitted, the specified project's configuration file is used. + +.PARAMETER ContextProjectName + Specifies the project which contains the DbContext class to use. If omitted, + the context is assumed to be in the same project used for migrations. + +.PARAMETER ConnectionStringName + Specifies the name of a connection string to use from the application's + configuration file. + +.PARAMETER ConnectionString + Specifies the the connection string to use. If omitted, the context's + default connection will be used. + +.PARAMETER ConnectionProviderName + Specifies the provider invariant name of the connection string. + +.PARAMETER Force + Specifies that the migrations configuration be overwritten when running more + than once for a given project. +#> +function Enable-Migrations +{ + [CmdletBinding(DefaultParameterSetName = 'ConnectionStringName')] + param ( + [string] $ContextTypeName, + [alias('Auto')] + [switch] $EnableAutomaticMigrations, + [string] $MigrationsDirectory, + [string] $ProjectName, + [string] $StartUpProjectName, + [string] $ContextProjectName, + [parameter(ParameterSetName = 'ConnectionStringName')] + [string] $ConnectionStringName, + [parameter(ParameterSetName = 'ConnectionStringAndProviderName', + Mandatory = $true)] + [string] $ConnectionString, + [parameter(ParameterSetName = 'ConnectionStringAndProviderName', + Mandatory = $true)] + [string] $ConnectionProviderName, + [switch] $Force + ) + + $runner = New-MigrationsRunner $ProjectName $StartUpProjectName $ContextProjectName $null $ConnectionStringName $ConnectionString $ConnectionProviderName + + try + { + Invoke-RunnerCommand $runner System.Data.Entity.Migrations.EnableMigrationsCommand @( $EnableAutomaticMigrations.IsPresent, $Force.IsPresent ) @{ 'ContextTypeName' = $ContextTypeName; 'MigrationsDirectory' = $MigrationsDirectory } + $error = Get-RunnerError $runner + + if ($error) + { + if ($knownExceptions -notcontains $error.TypeName) + { + Write-Host $error.StackTrace + } + else + { + Write-Verbose $error.StackTrace + } + + throw $error.Message + } + + $(Get-VSComponentModel).GetService([NuGetConsole.IPowerConsoleWindow]).Show() + } + finally + { + Remove-Runner $runner + } +} + +<# +.SYNOPSIS + Scaffolds a migration script for any pending model changes. + +.DESCRIPTION + Scaffolds a new migration script and adds it to the project. + +.PARAMETER Name + Specifies the name of the custom script. + +.PARAMETER Force + Specifies that the migration user code be overwritten when re-scaffolding an + existing migration. + +.PARAMETER ProjectName + Specifies the project that contains the migration configuration type to be + used. If omitted, the default project selected in package manager console + is used. + +.PARAMETER StartUpProjectName + Specifies the configuration file to use for named connection strings. If + omitted, the specified project's configuration file is used. + +.PARAMETER ConfigurationTypeName + Specifies the migrations configuration to use. If omitted, migrations will + attempt to locate a single migrations configuration type in the target + project. + +.PARAMETER ConnectionStringName + Specifies the name of a connection string to use from the application's + configuration file. + +.PARAMETER ConnectionString + Specifies the the connection string to use. If omitted, the context's + default connection will be used. + +.PARAMETER ConnectionProviderName + Specifies the provider invariant name of the connection string. + +.PARAMETER IgnoreChanges + Scaffolds an empty migration ignoring any pending changes detected in the current model. + This can be used to create an initial, empty migration to enable Migrations for an existing + database. N.B. Doing this assumes that the target database schema is compatible with the + current model. + +#> +function Add-Migration +{ + [CmdletBinding(DefaultParameterSetName = 'ConnectionStringName')] + param ( + [parameter(Position = 0, + Mandatory = $true)] + [string] $Name, + [switch] $Force, + [string] $ProjectName, + [string] $StartUpProjectName, + [string] $ConfigurationTypeName, + [parameter(ParameterSetName = 'ConnectionStringName')] + [string] $ConnectionStringName, + [parameter(ParameterSetName = 'ConnectionStringAndProviderName', + Mandatory = $true)] + [string] $ConnectionString, + [parameter(ParameterSetName = 'ConnectionStringAndProviderName', + Mandatory = $true)] + [string] $ConnectionProviderName, + [switch] $IgnoreChanges) + + $runner = New-MigrationsRunner $ProjectName $StartUpProjectName $null $ConfigurationTypeName $ConnectionStringName $ConnectionString $ConnectionProviderName + + try + { + Invoke-RunnerCommand $runner System.Data.Entity.Migrations.AddMigrationCommand @( $Name, $Force.IsPresent, $IgnoreChanges.IsPresent ) + $error = Get-RunnerError $runner + + if ($error) + { + if ($knownExceptions -notcontains $error.TypeName) + { + Write-Host $error.StackTrace + } + else + { + Write-Verbose $error.StackTrace + } + + throw $error.Message + } + $(Get-VSComponentModel).GetService([NuGetConsole.IPowerConsoleWindow]).Show() + } + finally + { + Remove-Runner $runner + } +} + +<# +.SYNOPSIS + Applies any pending migrations to the database. + +.DESCRIPTION + Updates the database to the current model by applying pending migrations. + +.PARAMETER SourceMigration + Only valid with -Script. Specifies the name of a particular migration to use + as the update's starting point. If omitted, the last applied migration in + the database will be used. + +.PARAMETER TargetMigration + Specifies the name of a particular migration to update the database to. If + omitted, the current model will be used. + +.PARAMETER Script + Generate a SQL script rather than executing the pending changes directly. + +.PARAMETER Force + Specifies that data loss is acceptable during automatic migration of the + database. + +.PARAMETER ProjectName + Specifies the project that contains the migration configuration type to be + used. If omitted, the default project selected in package manager console + is used. + +.PARAMETER StartUpProjectName + Specifies the configuration file to use for named connection strings. If + omitted, the specified project's configuration file is used. + +.PARAMETER ConfigurationTypeName + Specifies the migrations configuration to use. If omitted, migrations will + attempt to locate a single migrations configuration type in the target + project. + +.PARAMETER ConnectionStringName + Specifies the name of a connection string to use from the application's + configuration file. + +.PARAMETER ConnectionString + Specifies the the connection string to use. If omitted, the context's + default connection will be used. + +.PARAMETER ConnectionProviderName + Specifies the provider invariant name of the connection string. +#> +function Update-Database +{ + [CmdletBinding(DefaultParameterSetName = 'ConnectionStringName')] + param ( + [string] $SourceMigration, + [string] $TargetMigration, + [switch] $Script, + [switch] $Force, + [string] $ProjectName, + [string] $StartUpProjectName, + [string] $ConfigurationTypeName, + [parameter(ParameterSetName = 'ConnectionStringName')] + [string] $ConnectionStringName, + [parameter(ParameterSetName = 'ConnectionStringAndProviderName', + Mandatory = $true)] + [string] $ConnectionString, + [parameter(ParameterSetName = 'ConnectionStringAndProviderName', + Mandatory = $true)] + [string] $ConnectionProviderName) + + $runner = New-MigrationsRunner $ProjectName $StartUpProjectName $null $ConfigurationTypeName $ConnectionStringName $ConnectionString $ConnectionProviderName + + try + { + Invoke-RunnerCommand $runner System.Data.Entity.Migrations.UpdateDatabaseCommand @( $SourceMigration, $TargetMigration, $Script.IsPresent, $Force.IsPresent, $Verbose.IsPresent ) + $error = Get-RunnerError $runner + + if ($error) + { + if ($knownExceptions -notcontains $error.TypeName) + { + Write-Host $error.StackTrace + } + else + { + Write-Verbose $error.StackTrace + } + + throw $error.Message + } + $(Get-VSComponentModel).GetService([NuGetConsole.IPowerConsoleWindow]).Show() + } + finally + { + Remove-Runner $runner + } +} + +<# +.SYNOPSIS + Displays the migrations that have been applied to the target database. + +.DESCRIPTION + Displays the migrations that have been applied to the target database. + +.PARAMETER ProjectName + Specifies the project that contains the migration configuration type to be + used. If omitted, the default project selected in package manager console + is used. + +.PARAMETER StartUpProjectName + Specifies the configuration file to use for named connection strings. If + omitted, the specified project's configuration file is used. + +.PARAMETER ConfigurationTypeName + Specifies the migrations configuration to use. If omitted, migrations will + attempt to locate a single migrations configuration type in the target + project. + +.PARAMETER ConnectionStringName + Specifies the name of a connection string to use from the application's + configuration file. + +.PARAMETER ConnectionString + Specifies the the connection string to use. If omitted, the context's + default connection will be used. + +.PARAMETER ConnectionProviderName + Specifies the provider invariant name of the connection string. +#> +function Get-Migrations +{ + [CmdletBinding(DefaultParameterSetName = 'ConnectionStringName')] + param ( + [string] $ProjectName, + [string] $StartUpProjectName, + [string] $ConfigurationTypeName, + [parameter(ParameterSetName = 'ConnectionStringName')] + [string] $ConnectionStringName, + [parameter(ParameterSetName = 'ConnectionStringAndProviderName', + Mandatory = $true)] + [string] $ConnectionString, + [parameter(ParameterSetName = 'ConnectionStringAndProviderName', + Mandatory = $true)] + [string] $ConnectionProviderName) + + $runner = New-MigrationsRunner $ProjectName $StartUpProjectName $null $ConfigurationTypeName $ConnectionStringName $ConnectionString $ConnectionProviderName + + try + { + Invoke-RunnerCommand $runner System.Data.Entity.Migrations.GetMigrationsCommand + $error = Get-RunnerError $runner + + if ($error) + { + if ($knownExceptions -notcontains $error.TypeName) + { + Write-Host $error.StackTrace + } + else + { + Write-Verbose $error.StackTrace + } + + throw $error.Message + } + } + finally + { + Remove-Runner $runner + } +} + +function New-MigrationsRunner($ProjectName, $StartUpProjectName, $ContextProjectName, $ConfigurationTypeName, $ConnectionStringName, $ConnectionString, $ConnectionProviderName) +{ + $startUpProject = Get-MigrationsStartUpProject $StartUpProjectName $ProjectName + Build-Project $startUpProject + + $project = Get-MigrationsProject $ProjectName + Build-Project $project + + $contextProject = $project + if ($ContextProjectName) + { + $contextProject = Get-SingleProject $ContextProjectName + Build-Project $contextProject + } + + $installPath = Get-EntityFrameworkInstallPath $project + $toolsPath = Join-Path $installPath tools + + $info = New-AppDomainSetup $project $installPath + + $domain = [AppDomain]::CreateDomain('Migrations', $null, $info) + $domain.SetData('project', $project) + $domain.SetData('contextProject', $contextProject) + $domain.SetData('startUpProject', $startUpProject) + $domain.SetData('configurationTypeName', $ConfigurationTypeName) + $domain.SetData('connectionStringName', $ConnectionStringName) + $domain.SetData('connectionString', $ConnectionString) + $domain.SetData('connectionProviderName', $ConnectionProviderName) + + $dispatcher = New-DomainDispatcher $toolsPath + $domain.SetData('efDispatcher', $dispatcher) + + return @{ + Domain = $domain; + ToolsPath = $toolsPath + } +} + +function New-EFConfigRunner($Project) +{ + $installPath = Get-EntityFrameworkInstallPath $Project + $toolsPath = Join-Path $installPath tools + $info = New-AppDomainSetup $Project $installPath + + $domain = [AppDomain]::CreateDomain('EFConfig', $null, $info) + $domain.SetData('project', $Project) + + $dispatcher = New-DomainDispatcher $toolsPath + $domain.SetData('efDispatcher', $dispatcher) + + return @{ + Domain = $domain; + ToolsPath = $toolsPath + } +} + +function New-AppDomainSetup($Project, $InstallPath) +{ + $info = New-Object System.AppDomainSetup -Property @{ + ShadowCopyFiles = 'true'; + ApplicationBase = $InstallPath; + PrivateBinPath = 'tools'; + ConfigurationFile = ([AppDomain]::CurrentDomain.SetupInformation.ConfigurationFile) + } + + $targetFrameworkVersion = (New-Object System.Runtime.Versioning.FrameworkName ($Project.Properties.Item('TargetFrameworkMoniker').Value)).Version + + if ($targetFrameworkVersion -lt (New-Object Version @( 4, 5 ))) + { + $info.PrivateBinPath += ';lib\net40' + } + else + { + $info.PrivateBinPath += ';lib\net45' + } + + return $info +} + +function New-DomainDispatcher($ToolsPath) +{ + $utilityAssembly = [System.Reflection.Assembly]::LoadFrom((Join-Path $ToolsPath EntityFramework.PowerShell.Utility.dll)) + $dispatcher = $utilityAssembly.CreateInstance( + 'System.Data.Entity.Migrations.Utilities.DomainDispatcher', + $false, + [System.Reflection.BindingFlags]::Instance -bor [System.Reflection.BindingFlags]::Public, + $null, + $PSCmdlet, + $null, + $null) + + return $dispatcher +} + +function Remove-Runner($runner) +{ + [AppDomain]::Unload($runner.Domain) +} + +function Invoke-RunnerCommand($runner, $command, $parameters, $anonymousArguments) +{ + $domain = $runner.Domain + + if ($anonymousArguments) + { + $anonymousArguments.GetEnumerator() | %{ + $domain.SetData($_.Name, $_.Value) + } + } + + $domain.CreateInstanceFrom( + (Join-Path $runner.ToolsPath EntityFramework.PowerShell.dll), + $command, + $false, + 0, + $null, + $parameters, + $null, + $null) | Out-Null +} + +function Get-RunnerError($runner) +{ + $domain = $runner.Domain + + if (!$domain.GetData('wasError')) + { + return $null + } + + return @{ + Message = $domain.GetData('error.Message'); + TypeName = $domain.GetData('error.TypeName'); + StackTrace = $domain.GetData('error.StackTrace') + } +} + +function Get-MigrationsProject($name, $hideMessage) +{ + if ($name) + { + return Get-SingleProject $name + } + + $project = Get-Project + $projectName = $project.Name + + if (!$hideMessage) + { + Write-Verbose "Using NuGet project '$projectName'." + } + + return $project +} + +function Get-MigrationsStartUpProject($name, $fallbackName) +{ + $startUpProject = $null + + if ($name) + { + $startUpProject = Get-SingleProject $name + } + else + { + $startupProjectPaths = $DTE.Solution.SolutionBuild.StartupProjects + + if ($startupProjectPaths) + { + if ($startupProjectPaths.Length -eq 1) + { + $startupProjectPath = $startupProjectPaths[0] + + if (!(Split-Path -IsAbsolute $startupProjectPath)) + { + $solutionPath = Split-Path $DTE.Solution.Properties.Item('Path').Value + $startupProjectPath = Join-Path $solutionPath $startupProjectPath -Resolve + } + + $startupProject = Get-SolutionProjects | ?{ + try + { + $fullName = $_.FullName + } + catch [NotImplementedException] + { + return $false + } + + if ($fullName -and $fullName.EndsWith('\')) + { + $fullName = $fullName.Substring(0, $fullName.Length - 1) + } + + return $fullName -eq $startupProjectPath + } + } + else + { + Write-Verbose 'More than one start-up project found.' + } + } + else + { + Write-Verbose 'No start-up project found.' + } + } + + if (!($startUpProject -and (Test-StartUpProject $startUpProject))) + { + $startUpProject = Get-MigrationsProject $fallbackName $true + $startUpProjectName = $startUpProject.Name + + Write-Warning "Cannot determine a valid start-up project. Using project '$startUpProjectName' instead. Your configuration file and working directory may not be set as expected. Use the -StartUpProjectName parameter to set one explicitly. Use the -Verbose switch for more information." + } + else + { + $startUpProjectName = $startUpProject.Name + + Write-Verbose "Using StartUp project '$startUpProjectName'." + } + + return $startUpProject +} + +function Get-SolutionProjects() +{ + $projects = New-Object System.Collections.Stack + + $DTE.Solution.Projects | %{ + $projects.Push($_) + } + + while ($projects.Count -ne 0) + { + $project = $projects.Pop(); + + # NOTE: This line is similar to doing a "yield return" in C# + $project + + if ($project.ProjectItems) + { + $project.ProjectItems | ?{ $_.SubProject } | %{ + $projects.Push($_.SubProject) + } + } + } +} + +function Get-SingleProject($name) +{ + $project = Get-Project $name + + if ($project -is [array]) + { + throw "More than one project '$name' was found. Specify the full name of the one to use." + } + + return $project +} + +function Test-StartUpProject($project) +{ + if ($project.Kind -eq '{cc5fd16d-436d-48ad-a40c-5a424c6e3e79}') + { + $projectName = $project.Name + Write-Verbose "Cannot use start-up project '$projectName'. The Windows Azure Project type isn't supported." + + return $false + } + + return $true +} + +function Build-Project($project) +{ + $configuration = $DTE.Solution.SolutionBuild.ActiveConfiguration.Name + + $DTE.Solution.SolutionBuild.BuildProject($configuration, $project.UniqueName, $true) + + if ($DTE.Solution.SolutionBuild.LastBuildInfo) + { + $projectName = $project.Name + + throw "The project '$projectName' failed to build." + } +} + +function Get-EntityFrameworkInstallPath($project) +{ + $package = Get-Package -ProjectName $project.FullName | ?{ $_.Id -eq 'EntityFramework' } + + if (!$package) + { + $projectName = $project.Name + + throw "The EntityFramework package is not installed on project '$projectName'." + } + + return Get-PackageInstallPath $package +} + +function Get-PackageInstallPath($package) +{ + $componentModel = Get-VsComponentModel + $packageInstallerServices = $componentModel.GetService([NuGet.VisualStudio.IVsPackageInstallerServices]) + + $vsPackage = $packageInstallerServices.GetInstalledPackages() | ?{ $_.Id -eq $package.Id -and $_.Version -eq $package.Version } + + return $vsPackage.InstallPath +} + +function Check-Project($project) +{ + if (!$project.FullName) + { + throw "The Project argument must refer to a Visual Studio project. Use the '`$project' variable provided by NuGet when running in install.ps1." + } +} + +Export-ModuleMember @( 'Enable-Migrations', 'Add-Migration', 'Update-Database', 'Get-Migrations', 'Add-EFProvider', 'Add-EFDefaultConnectionFactory', 'Initialize-EFConfiguration') -Variable InitialDatabase + +# SIG # Begin signature block +# MIIarwYJKoZIhvcNAQcCoIIaoDCCGpwCAQExCzAJBgUrDgMCGgUAMG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3vA4o6GKPk09wcFEmkvlncGKTz4fGhYWf5ELykT0TSQuL +# vP1PN35OUNzlpqc2FuWCDosVl8FUhphYXpiw/1sUnI5nPG8aGiUboYICKDCCAiQG +# CSqGSIb3DQEJBjGCAhUwggIRAgEBMIGOMHcxCzAJBgNVBAYTAlVTMRMwEQYDVQQI +# EwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNyb3Nv +# ZnQgQ29ycG9yYXRpb24xITAfBgNVBAMTGE1pY3Jvc29mdCBUaW1lLVN0YW1wIFBD +# QQITMwAAAEyh6E3MtHR7OwAAAAAATDAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkD +# MQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMTMxMjExMjIxODIyWjAjBgkq +# hkiG9w0BCQQxFgQU0jwg1lgVl4Ydsz+7YfTew/L6w9EwDQYJKoZIhvcNAQEFBQAE +# ggEAE5v+eUOejFOPJm9KTWV3trMOU5afQi0n39o/1ow7rvHPXB6fPf4vEAfHLc5M +# I01Pkq6e+0dU48Ycqncr1qL5RVrDJgHIVIGQaMZ3cur80ifFVToLUgo8ie1hCGla +# egR9gDAPXt9kMmUlh2HWyrN3/8RrMo98h8uMD/lk0jGCl5ZXowhYi1+dGsi5Vt4X +# sz/hVapCufzGLD6HaTbqTLRj3rAuycixVJPH8gVozNemt0JbLq/QAYprlssnN86b +# 6t86PRgDV6XFSfathsc49L3GrvrwG5PmhIeM6mOEjDhoR1OQazGiOWyDllhzvfrj +# sjRwuQtMASWcD8MnYCgA+lqXQA== +# SIG # End signature block
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
@@ -0,0 +1,48 @@
+TOPIC + about_EntityFramework + +SHORT DESCRIPTION + Provides information about Entity Framework commands. + +LONG DESCRIPTION + This topic describes the Entity Framework commands. Entity Framework is + Microsoft's recommended data access technology for new applications. + + The following Entity Framework cmdlets are used with Entity Framework + Migrations. + + Cmdlet Description + ----------------- --------------------------------------------------- + Enable-Migrations Enables Code First Migrations in a project. + + Add-Migration Scaffolds a migration script for any pending model + changes. + + Update-Database Applies any pending migrations to the database. + + Get-Migrations Displays the migrations that have been applied to + the target database. + + The following Entity Framework cmdlets are used by NuGet packages that + install Entity Framework providers. These commands are not usually used as + part of normal application development. + + Cmdlet Description + ------------------------------ --------------------------------------- + Add-EFProvider Adds or updates an Entity Framework + provider entry in the project config + file. + + Add-EFDefaultConnectionFactory Adds or updates an Entity Framework + default connection factory in the + project config file. + + Initialize-EFConfiguration Initializes the Entity Framework + section in the project config file and + sets defaults. + +SEE ALSO + Enable-Migrations + Add-Migration + Update-Database + Get-Migrations
Change 1 of 1 Show Entire File packages/​EntityFramework.6.0.2/​tools/​init.ps1 Stacked
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
@@ -0,0 +1,154 @@
+param($installPath, $toolsPath, $package, $project) + +if (Get-Module | ?{ $_.Name -eq 'EntityFramework' }) +{ + Remove-Module EntityFramework +} + +Import-Module (Join-Path $toolsPath EntityFramework.psd1) + +# SIG # Begin signature block +# MIIarwYJKoZIhvcNAQcCoIIaoDCCGpwCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB +# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR +# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUjXj4E03IfImYfKMB4CA3DfY0 +# KZmgghWCMIIEwzCCA6ugAwIBAgITMwAAADPlJ4ajDkoqgAAAAAAAMzANBgkqhkiG +# 9w0BAQUFADB3MQswCQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4G +# A1UEBxMHUmVkbW9uZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMSEw +# HwYDVQQDExhNaWNyb3NvZnQgVGltZS1TdGFtcCBQQ0EwHhcNMTMwMzI3MjAwODIz +# WhcNMTQwNjI3MjAwODIzWjCBszELMAkGA1UEBhMCVVMxEzARBgNVBAgTCldhc2hp +# bmd0b24xEDAOBgNVBAcTB1JlZG1vbmQxHjAcBgNVBAoTFU1pY3Jvc29mdCBDb3Jw +# b3JhdGlvbjENMAsGA1UECxMETU9QUjEnMCUGA1UECxMebkNpcGhlciBEU0UgRVNO +# OkY1MjgtMzc3Ny04QTc2MSUwIwYDVQQDExxNaWNyb3NvZnQgVGltZS1TdGFtcCBT +# ZXJ2aWNlMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ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2HDjS8/A6z1uiNBcecShvW+1IUQ/3HEQXKwEgjt5JjupMcB9Bob +# n62/pt7XutAKRXir536nnjs4zg3RTHw0LbyD5dymYplZ88cojv9WBMN//2pXDbec +# 7AVTn0E88TfrS2mWABexn+qeNg== +# SIG # End signature block
Change 1 of 1 Show Entire File packages/​EntityFramework.6.0.2/​tools/​install.ps1 Stacked
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
@@ -0,0 +1,153 @@
+param($installPath, $toolsPath, $package, $project) + +Initialize-EFConfiguration $project +Add-EFProvider $project 'System.Data.SqlClient' 'System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer' + +Write-Host +Write-Host "Type 'get-help EntityFramework' to see all available Entity Framework commands." + +# SIG # Begin signature block +# MIIarwYJKoZIhvcNAQcCoIIaoDCCGpwCAQExCzAJBgUrDgMC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@@ -0,0 +1,39 @@
+<?xml version="1.0"?> +<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd"> + <metadata> + <id>System.Data.SQLite</id> + <version>1.0.92.0</version> + <title>System.Data.SQLite (x86/x64)</title> + <authors>SQLite Development Team</authors> + <owners>SQLite Development Team</owners> + <licenseUrl>http://www.sqlite.org/copyright.html</licenseUrl> + <projectUrl>http://system.data.sqlite.org/</projectUrl> + <iconUrl>http://system.data.sqlite.org/images/sqlite32.png</iconUrl> + <requireLicenseAcceptance>false</requireLicenseAcceptance> + <description>The official SQLite database engine for both x86 and x64 along with the ADO.NET provider. This package includes support for LINQ and Entity Framework 6.</description> + <copyright>Public Domain</copyright> + <language>en-US</language> + <tags>sqlite database ado.net provider interop</tags> + <dependencies> + <group targetFramework=".NETFramework2.0"> + <dependency id="System.Data.SQLite.Core" version="1.0.92.0" /> + <dependency id="System.Data.SQLite.Linq" version="1.0.92.0" /> + </group> + <group targetFramework=".NETFramework4.0"> + <dependency id="System.Data.SQLite.Core" version="1.0.92.0" /> + <dependency id="System.Data.SQLite.Linq" version="1.0.92.0" /> + <dependency id="System.Data.SQLite.EF6" version="1.0.92.0" /> + </group> + <group targetFramework=".NETFramework4.5"> + <dependency id="System.Data.SQLite.Core" version="1.0.92.0" /> + <dependency id="System.Data.SQLite.Linq" version="1.0.92.0" /> + <dependency id="System.Data.SQLite.EF6" version="1.0.92.0" /> + </group> + <group targetFramework=".NETFramework4.5.1"> + <dependency id="System.Data.SQLite.Core" version="1.0.92.0" /> + <dependency id="System.Data.SQLite.Linq" version="1.0.92.0" /> + <dependency id="System.Data.SQLite.EF6" version="1.0.92.0" /> + </group> + </dependencies> + </metadata> +</package> \ No newline at end of file
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
 
@@ -0,0 +1,18 @@
+<?xml version="1.0"?> +<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd"> + <metadata> + <id>System.Data.SQLite.Core</id> + <version>1.0.92.0</version> + <title>System.Data.SQLite Core (x86/x64)</title> + <authors>SQLite Development Team</authors> + <owners>SQLite Development Team</owners> + <licenseUrl>http://www.sqlite.org/copyright.html</licenseUrl> + <projectUrl>http://system.data.sqlite.org/</projectUrl> + <iconUrl>http://system.data.sqlite.org/images/sqlite32.png</iconUrl> + <requireLicenseAcceptance>false</requireLicenseAcceptance> + <description>The official SQLite database engine for both x86 and x64 along with the ADO.NET provider.</description> + <copyright>Public Domain</copyright> + <language>en-US</language> + <tags>sqlite database ado.net provider interop</tags> + </metadata> +</package> \ No newline at end of file
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
This file's diff was not loaded because this changeset is very large. Load changes
 
 
This file's diff was not loaded because this changeset is very large. Load changes
 
 
This file's diff was not loaded because this changeset is very large. Load changes
 
 
This file's diff was not loaded because this changeset is very large. Load changes
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
@@ -0,0 +1,36 @@
+############################################################################### +# +# install.ps1 -- +# +# Written by Joe Mistachkin. +# Released to the public domain, use at your own risk! +# +############################################################################### + +param($installPath, $toolsPath, $package, $project) + +$platformNames = "x86", "x64" +$fileName = "SQLite.Interop.dll" +$propertyName = "CopyToOutputDirectory" + +foreach($platformName in $platformNames) { + $folder = $project.ProjectItems.Item($platformName) + + if ($folder -eq $null) { + continue + } + + $item = $folder.ProjectItems.Item($fileName) + + if ($item -eq $null) { + continue + } + + $property = $item.Properties.Item($propertyName) + + if ($property -eq $null) { + continue + } + + $property.Value = 1 +}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
@@ -0,0 +1,36 @@
+############################################################################### +# +# install.ps1 -- +# +# Written by Joe Mistachkin. +# Released to the public domain, use at your own risk! +# +############################################################################### + +param($installPath, $toolsPath, $package, $project) + +$platformNames = "x86", "x64" +$fileName = "SQLite.Interop.dll" +$propertyName = "CopyToOutputDirectory" + +foreach($platformName in $platformNames) { + $folder = $project.ProjectItems.Item($platformName) + + if ($folder -eq $null) { + continue + } + + $item = $folder.ProjectItems.Item($fileName) + + if ($item -eq $null) { + continue + } + + $property = $item.Properties.Item($propertyName) + + if ($property -eq $null) { + continue + } + + $property.Value = 1 +}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
@@ -0,0 +1,36 @@
+############################################################################### +# +# install.ps1 -- +# +# Written by Joe Mistachkin. +# Released to the public domain, use at your own risk! +# +############################################################################### + +param($installPath, $toolsPath, $package, $project) + +$platformNames = "x86", "x64" +$fileName = "SQLite.Interop.dll" +$propertyName = "CopyToOutputDirectory" + +foreach($platformName in $platformNames) { + $folder = $project.ProjectItems.Item($platformName) + + if ($folder -eq $null) { + continue + } + + $item = $folder.ProjectItems.Item($fileName) + + if ($item -eq $null) { + continue + } + + $property = $item.Properties.Item($propertyName) + + if ($property -eq $null) { + continue + } + + $property.Value = 1 +}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
@@ -0,0 +1,36 @@
+############################################################################### +# +# install.ps1 -- +# +# Written by Joe Mistachkin. +# Released to the public domain, use at your own risk! +# +############################################################################### + +param($installPath, $toolsPath, $package, $project) + +$platformNames = "x86", "x64" +$fileName = "SQLite.Interop.dll" +$propertyName = "CopyToOutputDirectory" + +foreach($platformName in $platformNames) { + $folder = $project.ProjectItems.Item($platformName) + + if ($folder -eq $null) { + continue + } + + $item = $folder.ProjectItems.Item($fileName) + + if ($item -eq $null) { + continue + } + + $property = $item.Properties.Item($propertyName) + + if ($property -eq $null) { + continue + } + + $property.Value = 1 +}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
 
@@ -0,0 +1,32 @@
+<?xml version="1.0"?> +<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd"> + <metadata> + <id>System.Data.SQLite.EF6</id> + <version>1.0.92.0</version> + <title>System.Data.SQLite EF6 (x86/x64)</title> + <authors>SQLite Development Team</authors> + <owners>SQLite Development Team</owners> + <licenseUrl>http://www.sqlite.org/copyright.html</licenseUrl> + <projectUrl>http://system.data.sqlite.org/</projectUrl> + <iconUrl>http://system.data.sqlite.org/images/sqlite32.png</iconUrl> + <requireLicenseAcceptance>false</requireLicenseAcceptance> + <description>Support for Entity Framework 6 using System.Data.SQLite.</description> + <copyright>Public Domain</copyright> + <language>en-US</language> + <tags>sqlite database ado.net provider interop</tags> + <dependencies> + <group targetFramework=".NETFramework4.0"> + <dependency id="System.Data.SQLite.Core" version="1.0.92.0" /> + <dependency id="EntityFramework" version="6.0.0.0" /> + </group> + <group targetFramework=".NETFramework4.5"> + <dependency id="System.Data.SQLite.Core" version="1.0.92.0" /> + <dependency id="EntityFramework" version="6.0.0.0" /> + </group> + <group targetFramework=".NETFramework4.5.1"> + <dependency id="System.Data.SQLite.Core" version="1.0.92.0" /> + <dependency id="EntityFramework" version="6.0.0.0" /> + </group> + </dependencies> + </metadata> +</package> \ No newline at end of file
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
@@ -0,0 +1,12 @@
+<configuration> + <system.data> + <DbProviderFactories> + <remove invariant="System.Data.SQLite" /> + <remove invariant="System.Data.SQLite.EF6" /> + <add name="SQLite Data Provider (Entity Framework 6)" + invariant="System.Data.SQLite.EF6" + description=".Net Framework Data Provider for SQLite (Entity Framework 6)" + type="System.Data.SQLite.EF6.SQLiteProviderFactory, System.Data.SQLite.EF6" /> + </DbProviderFactories> + </system.data> +</configuration>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
@@ -0,0 +1,12 @@
+<configuration> + <system.data> + <DbProviderFactories> + <remove invariant="System.Data.SQLite" /> + <remove invariant="System.Data.SQLite.EF6" /> + <add name="SQLite Data Provider (Entity Framework 6)" + invariant="System.Data.SQLite.EF6" + description=".Net Framework Data Provider for SQLite (Entity Framework 6)" + type="System.Data.SQLite.EF6.SQLiteProviderFactory, System.Data.SQLite.EF6" /> + </DbProviderFactories> + </system.data> +</configuration>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
@@ -0,0 +1,12 @@
+<configuration> + <system.data> + <DbProviderFactories> + <remove invariant="System.Data.SQLite" /> + <remove invariant="System.Data.SQLite.EF6" /> + <add name="SQLite Data Provider (Entity Framework 6)" + invariant="System.Data.SQLite.EF6" + description=".Net Framework Data Provider for SQLite (Entity Framework 6)" + type="System.Data.SQLite.EF6.SQLiteProviderFactory, System.Data.SQLite.EF6" /> + </DbProviderFactories> + </system.data> +</configuration>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
@@ -0,0 +1,12 @@
+<configuration> + <system.data> + <DbProviderFactories> + <remove invariant="System.Data.SQLite" /> + <remove invariant="System.Data.SQLite.EF6" /> + <add name="SQLite Data Provider (Entity Framework 6)" + invariant="System.Data.SQLite.EF6" + description=".Net Framework Data Provider for SQLite (Entity Framework 6)" + type="System.Data.SQLite.EF6.SQLiteProviderFactory, System.Data.SQLite.EF6" /> + </DbProviderFactories> + </system.data> +</configuration>
This file's diff was not loaded because this changeset is very large. Load changes
This file's diff was not loaded because this changeset is very large. Load changes
 
 
 
 
 
 
This file's diff was not loaded because this changeset is very large. Load changes
This file's diff was not loaded because this changeset is very large. Load changes
This file's diff was not loaded because this changeset is very large. Load changes
 
 
This file's diff was not loaded because this changeset is very large. Load changes
This file's diff was not loaded because this changeset is very large. Load changes
This file's diff was not loaded because this changeset is very large. Load changes
This file's diff was not loaded because this changeset is very large. Load changes
This file's diff was not loaded because this changeset is very large. Load changes
This file's diff was not loaded because this changeset is very large. Load changes
This file's diff was not loaded because this changeset is very large. Load changes
This file's diff was not loaded because this changeset is very large. Load changes
This file's diff was not loaded because this changeset is very large. Load changes
 
 
 
 
 
 
 
 
Show Entire File test/​MigratorTest.cs Stacked
This file's diff was not loaded because this changeset is very large. Load changes