Skip to content

Commit e0f621d

Browse files
dev: prepare release EF
1 parent e895778 commit e0f621d

File tree

114 files changed

+223
-191
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+223
-191
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ jobs:
118118
uses: actions/setup-dotnet@v4
119119
with:
120120
dotnet-version: 9.0.x
121-
- name: Run EfCore tests
122-
run: dotnet test src/EfCore.Ydb/test/EfCore.Ydb.FunctionalTests/EfCore.Ydb.FunctionalTests.csproj -l "console;verbosity=detailed"
121+
- name: Run EFCore tests
122+
run: dotnet test src/EFCore.Ydb/test/EfCore.Ydb.FunctionalTests/EFCore.Ydb.FunctionalTests.csproj -l "console;verbosity=detailed"
123123
integration-tests:
124124
runs-on: ubuntu-22.04
125125
strategy:

examples/src/EF/EF.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
</PropertyGroup>
1010

1111
<ItemGroup>
12-
<ProjectReference Include="..\..\..\src\EfCore.Ydb\src\EfCore.Ydb.csproj"/>
12+
<ProjectReference Include="..\..\..\src\EFCore.Ydb\src\EntityFrameworkCore.Ydb.csproj"/>
1313
</ItemGroup>
1414
</Project>

examples/src/EF/Program.cs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using EfCore.Ydb.Extensions;
1+
using EntityFrameworkCore.Ydb.Extensions;
22
using Microsoft.EntityFrameworkCore;
33

44
await using var db = new BloggingContext();
@@ -7,7 +7,11 @@
77
await db.Database.EnsureCreatedAsync();
88

99
Console.WriteLine("Inserting a new blog");
10-
db.Add(new Blog { Url = "http://blogs.msdn.com/adonet" });
10+
db.Add(new Blog { Url = "http://blogs.msdn.com/adonet - 1" });
11+
db.Add(new Blog { Url = "http://blogs.msdn.com/adonet - 2" });
12+
db.Add(new Blog { Url = "http://blogs.msdn.com/adonet - 3" });
13+
db.Add(new Blog { Url = "http://blogs.msdn.com/adonet - 4" });
14+
1115
await db.SaveChangesAsync();
1216

1317
Console.WriteLine("Querying for a blog");
@@ -30,7 +34,8 @@ internal class BloggingContext : DbContext
3034
public DbSet<Post> Posts { get; set; }
3135

3236
protected override void OnConfiguring(DbContextOptionsBuilder options)
33-
=> options.UseYdb("Host=localhost;Port=2136;Database=/local");
37+
=> options.UseYdb("Host=localhost;Port=2136;Database=/local")
38+
.LogTo(Console.WriteLine);
3439
}
3540

3641
internal class Blog

examples/src/EF_YC/EF_YC.csproj

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

1717
<ItemGroup>
18-
<ProjectReference Include="..\..\..\src\EfCore.Ydb\src\EfCore.Ydb.csproj"/>
18+
<ProjectReference Include="..\..\..\src\EFCore.Ydb\src\EntityFrameworkCore.Ydb.csproj"/>
1919
<ProjectReference Include="..\..\..\src\Ydb.Sdk\src\Ydb.Sdk.csproj"/>
2020
</ItemGroup>
2121
</Project>

examples/src/EF_YC/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using CommandLine;
22
using EF_YC;
3-
using EfCore.Ydb.Extensions;
3+
using EntityFrameworkCore.Ydb.Extensions;
44
using Microsoft.EntityFrameworkCore;
55
using Microsoft.Extensions.Logging;
66
using Ydb.Sdk.Yc;
File renamed without changes.
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System;
22

3-
namespace EfCore.Ydb.Abstractions;
3+
namespace EntityFrameworkCore.Ydb.Abstractions;
44

55
[AttributeUsage(AttributeTargets.Property)]
66
public class YdbStringAttribute : Attribute;

src/EfCore.Ydb/src/Design/Internal/YdbDesignTimeServices.cs renamed to src/EFCore.Ydb/src/Design/Internal/YdbDesignTimeServices.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
using EfCore.Ydb.Extensions;
2-
using EfCore.Ydb.Scaffolding.Internal;
1+
using EntityFrameworkCore.Ydb.Extensions;
2+
using EntityFrameworkCore.Ydb.Scaffolding.Internal;
33
using Microsoft.EntityFrameworkCore.Design;
44
using Microsoft.EntityFrameworkCore.Scaffolding;
55
using Microsoft.Extensions.DependencyInjection;
66

7-
namespace EfCore.Ydb.Design.Internal;
7+
namespace EntityFrameworkCore.Ydb.Design.Internal;
88

99
public class YdbDesignTimeServices : IDesignTimeServices
1010
{

src/EfCore.Ydb/src/Diagnostics/Internal/YdbCommandInterceptor.cs renamed to src/EFCore.Ydb/src/Diagnostics/Internal/YdbCommandInterceptor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using System.Data.Common;
22
using Microsoft.EntityFrameworkCore.Diagnostics;
33

4-
namespace EfCore.Ydb.Diagnostics.Internal;
4+
namespace EntityFrameworkCore.Ydb.Diagnostics.Internal;
55

66
// Temporary for debugging
77
public class YdbCommandInterceptor : DbCommandInterceptor
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using Microsoft.EntityFrameworkCore.Diagnostics;
22

3-
namespace EfCore.Ydb.Diagnostics.Internal;
3+
namespace EntityFrameworkCore.Ydb.Diagnostics.Internal;
44

55
public class YdbLoggingDefinitions : RelationalLoggingDefinitions;

0 commit comments

Comments
 (0)