File tree Expand file tree Collapse file tree 5 files changed +24
-19
lines changed
EntityFrameworkCore.Generator.Core
EntityFrameworkCore.Generator
test/EntityFrameworkCore.Generator.Core.Tests Expand file tree Collapse file tree 5 files changed +24
-19
lines changed Original file line number Diff line number Diff line change 66 </PropertyGroup >
77
88 <ItemGroup >
9- <PackageReference Include =" Microsoft.CodeAnalysis.CSharp.Scripting" Version =" 4.4 .0" />
10- <PackageReference Include =" Microsoft.EntityFrameworkCore.Design" Version =" 7.0.2 " />
9+ <PackageReference Include =" Microsoft.CodeAnalysis.CSharp.Scripting" Version =" 4.6 .0" />
10+ <PackageReference Include =" Microsoft.EntityFrameworkCore.Design" Version =" 7.0.5 " />
1111 <PackageReference Include =" Microsoft.Extensions.Configuration.UserSecrets" Version =" 7.0.0" />
1212 <PackageReference Include =" Pomelo.EntityFrameworkCore.MySql" Version =" 7.0.0" />
13- <PackageReference Include =" Microsoft.EntityFrameworkCore.Sqlite" Version =" 7.0.2 " />
14- <PackageReference Include =" Microsoft.EntityFrameworkCore.SqlServer" Version =" 7.0.2 " />
15- <PackageReference Include =" Npgsql.EntityFrameworkCore.PostgreSQL" Version =" 7.0.1 " />
16- <PackageReference Include =" Oracle.EntityFrameworkCore" Version =" 7.21.8 " />
17- <PackageReference Include =" YamlDotNet" Version =" 12.3.1 " />
13+ <PackageReference Include =" Microsoft.EntityFrameworkCore.Sqlite" Version =" 7.0.5 " />
14+ <PackageReference Include =" Microsoft.EntityFrameworkCore.SqlServer" Version =" 7.0.5 " />
15+ <PackageReference Include =" Npgsql.EntityFrameworkCore.PostgreSQL" Version =" 7.0.4 " />
16+ <PackageReference Include =" Oracle.EntityFrameworkCore" Version =" 7.21.9 " />
17+ <PackageReference Include =" YamlDotNet" Version =" 13.1.0 " />
1818 </ItemGroup >
1919
2020</Project >
Original file line number Diff line number Diff line change 1- using System ;
1+ using System ;
22using System . Threading ;
3+
34using EntityFrameworkCore . Generator . Options ;
4- using YamlDotNet . Serialization ;
5+
6+ using YamlDotNet . Serialization . ObjectFactories ;
57
68namespace EntityFrameworkCore . Generator ;
79
8- public class GeneratorOptionsFactory : IObjectFactory
10+ public class GeneratorOptionsFactory : ObjectFactoryBase
911{
1012 private readonly GeneratorOptions _generatorOptions ;
1113 private int _scriptCount ;
@@ -17,7 +19,7 @@ public GeneratorOptionsFactory()
1719 _scriptCount = 0 ;
1820 }
1921
20- public object Create ( Type type )
22+ public override object Create ( Type type )
2123 {
2224 // work around YamlDotNet requiring parameterless constructor
2325 if ( type == typeof ( GeneratorOptions ) )
@@ -66,4 +68,4 @@ public object Create(Type type)
6668
6769 return Activator . CreateInstance ( type ) ;
6870 }
69- }
71+ }
Original file line number Diff line number Diff line change 1313
1414 <ItemGroup >
1515 <PackageReference Include =" McMaster.Extensions.CommandLineUtils" Version =" 4.0.2" />
16- <PackageReference Include =" Serilog.Extensions.Hosting" Version =" 5 .0.1 " />
16+ <PackageReference Include =" Serilog.Extensions.Hosting" Version =" 7 .0.0 " />
1717 <PackageReference Include =" Serilog.Sinks.Console" Version =" 4.1.0" />
18- <PackageReference Include =" ThisAssembly" Version =" 1.1.3" />
18+ <PackageReference Include =" ThisAssembly" Version =" 1.2.15" >
19+ <PrivateAssets >all</PrivateAssets >
20+ <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
21+ </PackageReference >
1922 </ItemGroup >
2023
2124 <ItemGroup >
Original file line number Diff line number Diff line change 33 "EntityFrameworkCore.Generator" : {
44 "commandName" : " Project" ,
55 "commandLineArgs" : " generate" ,
6- "workingDirectory" : " D: \\ Projects \\ github \\ EntityFrameworkCore.Generator \\ sample\\ Tracker\\ Tracker.Core"
6+ "workingDirectory" : " .. \\ .. \\ sample\\ Tracker\\ Tracker.Core"
77 }
88 }
9- }
9+ }
Original file line number Diff line number Diff line change 1717 </ItemGroup >
1818
1919 <ItemGroup >
20- <PackageReference Include =" coverlet.msbuild" Version =" 3.2 .0" >
20+ <PackageReference Include =" coverlet.msbuild" Version =" 6.0 .0" >
2121 <PrivateAssets >all</PrivateAssets >
2222 <IncludeAssets >runtime; build; native; contentfiles; analyzers</IncludeAssets >
2323 </PackageReference >
2424 <PackageReference Include =" dbup-sqlserver" Version =" 5.0.8" />
25- <PackageReference Include =" FluentAssertions" Version =" 6.9 .0" />
25+ <PackageReference Include =" FluentAssertions" Version =" 6.11 .0" />
2626 <PackageReference Include =" Microsoft.Extensions.Configuration.EnvironmentVariables" Version =" 7.0.0" />
2727 <PackageReference Include =" Microsoft.Extensions.Configuration.Json" Version =" 7.0.0" />
28- <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 17.4.1 " />
28+ <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 17.6.0 " />
2929 <PackageReference Include =" xunit" Version =" 2.4.2" />
3030 <PackageReference Include =" xunit.runner.visualstudio" Version =" 2.4.5" >
3131 <PrivateAssets >all</PrivateAssets >
You can’t perform that action at this time.
0 commit comments