Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/VirtoCommerce.OrdersModule.Data.MySql/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,17 @@

## 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
Select Data.<Provider> folder and run following command for each provider:

```cmd
dotnet ef migrations add <migration-name>
```
5 changes: 2 additions & 3 deletions src/VirtoCommerce.OrdersModule.Data.PostgreSql/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,17 @@

## 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
Select Data.<Provider> folder and run following command for each provider:

```cmd
dotnet ef migrations add <migration-name>
```
Original file line number Diff line number Diff line change
@@ -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<CustomerOrderEntity>
{
public void Configure(EntityTypeBuilder<CustomerOrderEntity> builder)
{
builder.ToTable(tb => tb.UseSqlOutputClause(false));
}
}

public class ShipmentEntityConfiguration : IEntityTypeConfiguration<ShipmentEntity>
{
public void Configure(EntityTypeBuilder<ShipmentEntity> builder)
{
builder.ToTable(tb => tb.UseSqlOutputClause(false));
}
}

public class PaymentInEntityConfiguration : IEntityTypeConfiguration<PaymentInEntity>
{
public void Configure(EntityTypeBuilder<PaymentInEntity> builder)
{
builder.ToTable(tb => tb.UseSqlOutputClause(false));
}
}

public class AddressEntityConfiguration : IEntityTypeConfiguration<AddressEntity>
{
public void Configure(EntityTypeBuilder<AddressEntity> builder)
{
builder.ToTable(tb => tb.UseSqlOutputClause(false));
}
}

public class LineItemEntityConfiguration : IEntityTypeConfiguration<LineItemEntity>
{
public void Configure(EntityTypeBuilder<LineItemEntity> builder)
{
builder.ToTable(tb => tb.UseSqlOutputClause(false));
}
}

5 changes: 2 additions & 3 deletions src/VirtoCommerce.OrdersModule.Data.SqlServer/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,17 @@

## 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
Select Data.<Provider> folder and run following command for each provider:

```cmd
dotnet ef migrations add <migration-name>
```
Loading