diff --git a/src/VirtoCommerce.OrdersModule.Data.MySql/Readme.md b/src/VirtoCommerce.OrdersModule.Data.MySql/Readme.md index 437dc81f9..3781ff1db 100644 --- a/src/VirtoCommerce.OrdersModule.Data.MySql/Readme.md +++ b/src/VirtoCommerce.OrdersModule.Data.MySql/Readme.md @@ -2,13 +2,13 @@ ## Install CLI tools for Entity Framework Core ```cmd -dotnet tool install --global dotnet-ef --version 8.0.0 +dotnet tool install --global dotnet-ef --version 8.0.11 ``` or update ```cmd -dotnet tool update --global dotnet-ef --version 8.0.0 +dotnet tool update --global dotnet-ef --version 8.0.11 ``` ## Add Migration @@ -16,4 +16,3 @@ Select Data. folder and run following command for each provider: ```cmd dotnet ef migrations add -``` diff --git a/src/VirtoCommerce.OrdersModule.Data.PostgreSql/Readme.md b/src/VirtoCommerce.OrdersModule.Data.PostgreSql/Readme.md index 437dc81f9..3781ff1db 100644 --- a/src/VirtoCommerce.OrdersModule.Data.PostgreSql/Readme.md +++ b/src/VirtoCommerce.OrdersModule.Data.PostgreSql/Readme.md @@ -2,13 +2,13 @@ ## Install CLI tools for Entity Framework Core ```cmd -dotnet tool install --global dotnet-ef --version 8.0.0 +dotnet tool install --global dotnet-ef --version 8.0.11 ``` or update ```cmd -dotnet tool update --global dotnet-ef --version 8.0.0 +dotnet tool update --global dotnet-ef --version 8.0.11 ``` ## Add Migration @@ -16,4 +16,3 @@ Select Data. folder and run following command for each provider: ```cmd dotnet ef migrations add -``` diff --git a/src/VirtoCommerce.OrdersModule.Data.SqlServer/CustomerOrderEntityConfiguration.cs b/src/VirtoCommerce.OrdersModule.Data.SqlServer/CustomerOrderEntityConfiguration.cs new file mode 100644 index 000000000..b5cdc01e1 --- /dev/null +++ b/src/VirtoCommerce.OrdersModule.Data.SqlServer/CustomerOrderEntityConfiguration.cs @@ -0,0 +1,46 @@ +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Metadata.Builders; +using VirtoCommerce.OrdersModule.Data.Model; + +namespace VirtoCommerce.OrdersModule.Data.SqlServer; + +public class CustomerOrderEntityConfiguration : IEntityTypeConfiguration +{ + public void Configure(EntityTypeBuilder builder) + { + builder.ToTable(tb => tb.UseSqlOutputClause(false)); + } +} + +public class ShipmentEntityConfiguration : IEntityTypeConfiguration +{ + public void Configure(EntityTypeBuilder builder) + { + builder.ToTable(tb => tb.UseSqlOutputClause(false)); + } +} + +public class PaymentInEntityConfiguration : IEntityTypeConfiguration +{ + public void Configure(EntityTypeBuilder builder) + { + builder.ToTable(tb => tb.UseSqlOutputClause(false)); + } +} + +public class AddressEntityConfiguration : IEntityTypeConfiguration +{ + public void Configure(EntityTypeBuilder builder) + { + builder.ToTable(tb => tb.UseSqlOutputClause(false)); + } +} + +public class LineItemEntityConfiguration : IEntityTypeConfiguration +{ + public void Configure(EntityTypeBuilder builder) + { + builder.ToTable(tb => tb.UseSqlOutputClause(false)); + } +} + diff --git a/src/VirtoCommerce.OrdersModule.Data.SqlServer/Readme.md b/src/VirtoCommerce.OrdersModule.Data.SqlServer/Readme.md index 437dc81f9..3781ff1db 100644 --- a/src/VirtoCommerce.OrdersModule.Data.SqlServer/Readme.md +++ b/src/VirtoCommerce.OrdersModule.Data.SqlServer/Readme.md @@ -2,13 +2,13 @@ ## Install CLI tools for Entity Framework Core ```cmd -dotnet tool install --global dotnet-ef --version 8.0.0 +dotnet tool install --global dotnet-ef --version 8.0.11 ``` or update ```cmd -dotnet tool update --global dotnet-ef --version 8.0.0 +dotnet tool update --global dotnet-ef --version 8.0.11 ``` ## Add Migration @@ -16,4 +16,3 @@ Select Data. folder and run following command for each provider: ```cmd dotnet ef migrations add -```