Skip to content

Commit 2f9f7a2

Browse files
fix chore bugs EFCore (#563)
- Feat ADO.NET: Added overflow-checked int-to-uint cast for YDB Date, Datetime, and Timestamp. DateTime before -epoch now throws OverflowException. - Feat ADO.NET: Added support for the DateOnly type in YdbDataReader.GetFieldValue<T>. - Fixed bug EFCore: Missing DEFAULT clause generation in YdbMigrationsSqlGenerator (handles defaultValue/defaultValueSql) (#552). - Fixed bug EFCore: Missing/removed __EFMigrationsHistory caused INSERT errors (LockMigration); migrations now handle table recreation and locking properly (#544). - Feat ADO.NET: Added support for new YDB data types - Date32, Datetime64, Timestamp64 and Interval64.
1 parent 5de34c1 commit 2f9f7a2

32 files changed

+412
-118
lines changed

.github/workflows/tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,17 +126,17 @@ jobs:
126126
- name: Run EntityFrameworkCore.Ydb.QuickStart
127127
run: |
128128
cd ./examples/EntityFrameworkCore.Ydb.QuickStart
129-
dotnet tool install --global dotnet-ef
130-
dotnet add package Microsoft.EntityFrameworkCore.Design
129+
dotnet tool install --global dotnet-ef --version 9.0.10
130+
dotnet add package Microsoft.EntityFrameworkCore.Design --version 9.0.10
131131
dotnet ef migrations add InitialCreate
132132
dotnet ef database update
133133
dotnet run
134134
135135
- name: Run EntityFrameworkCore.Ydb.Samples/Database.Operations.Tutorial
136136
run: |
137137
cd ./examples/EntityFrameworkCore.Ydb.Samples/Database.Operations.Tutorial
138-
dotnet tool install --global dotnet-ef
139-
dotnet add package Microsoft.EntityFrameworkCore.Design
138+
dotnet tool install --global dotnet-ef --version 9.0.10
139+
dotnet add package Microsoft.EntityFrameworkCore.Design --version 9.0.10
140140
dotnet ef migrations add InitialCreate
141141
dotnet ef database update
142142
dotnet run

examples/EntityFrameworkCore.Ydb.QuickStart/EntityFrameworkCore.Ydb.QuickStart.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</ItemGroup>
1414

1515
<ItemGroup>
16-
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="9.0.5">
16+
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="9.0.10">
1717
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1818
<PrivateAssets>all</PrivateAssets>
1919
</PackageReference>

examples/EntityFrameworkCore.Ydb.QuickStart/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ shows how to get started with EF, define a model, populate it with data and then
1010

1111
2. Create the database:
1212
```bash
13-
dotnet tool install --global dotnet-ef
14-
dotnet add package Microsoft.EntityFrameworkCore.Design
13+
dotnet tool install --global dotnet-ef --version 9.0.10
14+
dotnet add package Microsoft.EntityFrameworkCore.Design --version 9.0.10
1515
dotnet ef migrations add InitialCreate
1616
dotnet ef database update
1717
```

examples/EntityFrameworkCore.Ydb.Samples/AddEntity.Sample/AddEntity.Sample.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</ItemGroup>
1414

1515
<ItemGroup>
16-
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="9.0.5">
16+
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="9.0.10">
1717
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1818
<PrivateAssets>all</PrivateAssets>
1919
</PackageReference>

examples/EntityFrameworkCore.Ydb.Samples/AddEntity.Sample/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ Based on the [tutorial](https://www.csharptutorial.net/entity-framework-core-tut
1111

1212
2. Install the EF Core CLI tool and dependencies (if needed):
1313
```bash
14-
dotnet tool install --global dotnet-ef
15-
dotnet add package Microsoft.EntityFrameworkCore.Design
14+
dotnet tool install --global dotnet-ef --version 9.0.10
15+
dotnet add package Microsoft.EntityFrameworkCore.Design --version 9.0.10
1616
```
1717

1818
3. Create the database and apply migrations:

examples/EntityFrameworkCore.Ydb.Samples/Database.Operations.Tutorial/Database.Operations.Tutorial.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
</ItemGroup>
1515

1616
<ItemGroup>
17-
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="9.0.5">
17+
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="9.0.10">
1818
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1919
<PrivateAssets>all</PrivateAssets>
2020
</PackageReference>

examples/EntityFrameworkCore.Ydb.Samples/Database.Operations.Tutorial/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ Based on the [tutorial](https://www.csharptutorial.net/entity-framework-core-tut
1010

1111
2. Install the EF Core CLI tool and dependencies (if needed):
1212
```bash
13-
dotnet tool install --global dotnet-ef
14-
dotnet add package Microsoft.EntityFrameworkCore.Design
13+
dotnet tool install --global dotnet-ef --version 9.0.10
14+
dotnet add package Microsoft.EntityFrameworkCore.Design --version 9.0.10
1515
```
1616

1717
3. Create the database and apply migrations:

examples/EntityFrameworkCore.Ydb.Samples/Schema.ManyToMany/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ The focus here is to show what database schema (DDL) will be generated by EF Cor
1111

1212
2. Install the EF Core CLI tool (if needed):
1313
```bash
14-
dotnet tool install --global dotnet-ef
15-
dotnet add package Microsoft.EntityFrameworkCore.Design
14+
dotnet tool install --global dotnet-ef --version 9.0.10
15+
dotnet add package Microsoft.EntityFrameworkCore.Design --version 9.0.10
1616
```
1717

1818
3. Add a migration to generate the DDL (if not already present):

examples/EntityFrameworkCore.Ydb.Samples/Schema.ManyToMany/Schema.ManyToMany.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</ItemGroup>
1414

1515
<ItemGroup>
16-
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="9.0.5">
16+
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="9.0.10">
1717
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1818
<PrivateAssets>all</PrivateAssets>
1919
</PackageReference>

examples/EntityFrameworkCore.Ydb.Samples/Schema.OneToMany/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ The focus here is to show what database schema (DDL) will be generated by EF Cor
1010

1111
2. Install the EF Core CLI tool (if needed):
1212
```bash
13-
dotnet tool install --global dotnet-ef
14-
dotnet add package Microsoft.EntityFrameworkCore.Design
13+
dotnet tool install --global dotnet-ef --version 9.0.10
14+
dotnet add package Microsoft.EntityFrameworkCore.Design --version 9.0.10
1515
```
1616

1717
3. Add a migration to generate the DDL (if not already present):

0 commit comments

Comments
 (0)