Skip to content
Merged
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
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Diagnostics;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.Extensions.Configuration;

Expand All @@ -22,6 +23,7 @@ public static DbContextOptionsBuilder UseMySqlDatabase(
{
mySqlDbContextOptionsBuilder.MigrationsAssembly(migrationsAssemblyMarkerType.Assembly.GetName().Name);
mySqlOptionsAction?.Invoke(mySqlDbContextOptionsBuilder, configuration);
});
})
.ConfigureWarnings(warnings => warnings.Ignore(CoreEventId.NoEntityTypeConfigurationsWarning));
}
}
4 changes: 2 additions & 2 deletions src/VirtoCommerce.Platform.Data.MySql/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

## Install CLI tools for Entity Framework Core
```cmd
dotnet tool install --global dotnet-ef --version 10.0.0
dotnet tool install --global dotnet-ef --version 10.0.1
```

or update

```cmd
dotnet tool update --global dotnet-ef --version 10.0.0
dotnet tool update --global dotnet-ef --version 10.0.1
```

## Add Migration
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Diagnostics;
using Microsoft.Extensions.Configuration;
using Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure;

Expand All @@ -21,6 +22,7 @@ public static DbContextOptionsBuilder UsePostgreSqlDatabase(
{
npgsqlDbContextOptionsBuilder.MigrationsAssembly(migrationsAssemblyMarkerType.Assembly.GetName().Name);
npgsqlOptionsAction?.Invoke(npgsqlDbContextOptionsBuilder, configuration);
});
})
.ConfigureWarnings(warnings => warnings.Ignore(CoreEventId.NoEntityTypeConfigurationsWarning));
}
}
4 changes: 2 additions & 2 deletions src/VirtoCommerce.Platform.Data.PostgreSql/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

## Install CLI tools for Entity Framework Core
```cmd
dotnet tool install --global dotnet-ef --version 10.0.0
dotnet tool install --global dotnet-ef --version 10.0.1
```

or update

```cmd
dotnet tool update --global dotnet-ef --version 10.0.0
dotnet tool update --global dotnet-ef --version 10.0.1
```

## Add Migration
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Diagnostics;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.Extensions.Configuration;

Expand Down Expand Up @@ -33,6 +34,7 @@ public static DbContextOptionsBuilder UseSqlServerDatabase(

sqlServerOptionsBuilder.MigrationsAssembly(migrationsAssemblyMarkerType.Assembly.GetName().Name);
sqlServerOptionsAction?.Invoke(sqlServerOptionsBuilder, configuration);
});
})
.ConfigureWarnings(warnings => warnings.Ignore(CoreEventId.NoEntityTypeConfigurationsWarning));
}
}
4 changes: 2 additions & 2 deletions src/VirtoCommerce.Platform.Data.SqlServer/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

## Install CLI tools for Entity Framework Core
```cmd
dotnet tool install --global dotnet-ef --version 10.0.0
dotnet tool install --global dotnet-ef --version 10.0.1
```

or update

```cmd
dotnet tool update --global dotnet-ef --version 10.0.0
dotnet tool update --global dotnet-ef --version 10.0.1
```

## Add Migration
Expand Down
Loading