Skip to content

Commit

Permalink
special case DateOnly/TimeOnly with .dacpac
Browse files Browse the repository at this point in the history
fixes #2002
  • Loading branch information
ErikEJ committed Nov 15, 2023
1 parent b515dc7 commit 75ea232
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/GUI/RevEng.Core.60/ServiceProviderBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,14 @@ public static IServiceCollection AddEfpt(this IServiceCollection serviceCollecti
MergeDacpacs = options.MergeDacpacs,
}));

#if CORE80
serviceCollection.AddSingleton<IRelationalTypeMappingSource, SqlServerTypeMappingSource>(
provider => new RevEng.Core.SqlServerTypeMappingSource(
provider.GetService<TypeMappingSourceDependencies>(),
provider.GetService<RelationalTypeMappingSourceDependencies>(),
options.UseDateOnlyTimeOnly));
#endif

serviceCollection.AddSqlServerDacpacStoredProcedureDesignTimeServices(new SqlServerDacpacDatabaseModelFactoryOptions
{
MergeDacpacs = options.MergeDacpacs,
Expand Down
Binary file modified src/GUI/lib/efreveng80.exe.zip
Binary file not shown.

0 comments on commit 75ea232

Please sign in to comment.