Skip to content

Commit 990d6d8

Browse files
dev: EfCore FunctionalTests run on main branch AdoNet (#461)
* dev: EfCore FunctionalTests run on main branch AdoNet * public SchemaObjects for EntityFrameworkCore.Ydb * public DescribeTable for EntityFrameworkCore.Ydb * Update CHANGELOG.md files
2 parents 6a6763b + 0171015 commit 990d6d8

File tree

5 files changed

+12
-4
lines changed

5 files changed

+12
-4
lines changed

src/EFCore.Ydb/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
- PrivateAssets="none" is set to flow the EF Core analyzer to users referencing this package [issue](https://github.com/aspnet/EntityFrameworkCore/pull/11350).
2+
13
## v0.0.2
24

35
- Fixed bug: Decimal type forces EF migrator to create migrations again and again ([#434](https://github.com/ydb-platform/ydb-dotnet-sdk/issues/434)).

src/EFCore.Ydb/src/EntityFrameworkCore.Ydb.csproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="9.0.0"/>
12-
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="9.0.0"/>
11+
<!-- PrivateAssets="none" is set to flow the EF Core analyzer to users referencing this package https://github.com/aspnet/EntityFrameworkCore/pull/11350 -->
12+
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="9.0.0" PrivateAssets="none"/>
13+
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="9.0.0" PrivateAssets="none"/>
1314
</ItemGroup>
1415

1516
<ItemGroup>

src/EFCore.Ydb/test/EntityFrameworkCore.Ydb.FunctionalTests/EntityFrameworkCore.Ydb.FunctionalTests.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
<ItemGroup>
2727
<ProjectReference Include="..\..\src\EntityFrameworkCore.Ydb.csproj" />
28+
<ProjectReference Include="..\..\..\Ydb.Sdk\src\Ydb.Sdk.csproj"/>
2829
</ItemGroup>
2930

3031
<ItemGroup>

src/Ydb.Sdk/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
- Fixed bug ADO.NET: `YdbSchema.SchemaObjects` and `Ydb.DescribeTable`methods are public for `EntityFrameworkCore.Ydb`.
2+
13
## v0.20.0
24

35
- Fixed bug: SQL parser skips token after param.

src/Ydb.Sdk/src/Ado/YdbSchema.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ internal static Task<DataTable> GetSchemaAsync(
4040
};
4141
}
4242

43-
private static Task<IReadOnlyCollection<YdbObject>> SchemaObjects(
43+
// public for EntityFrameworkCore.Ydb
44+
public static Task<IReadOnlyCollection<YdbObject>> SchemaObjects(
4445
YdbConnection ydbConnection,
4546
CancellationToken cancellationToken = default
4647
)
@@ -50,7 +51,8 @@ private static Task<IReadOnlyCollection<YdbObject>> SchemaObjects(
5051
return SchemaObjects(ydbConnection, WithSuffix(database), database, cancellationToken);
5152
}
5253

53-
private static async Task<YdbTable> DescribeTable(
54+
// public for EntityFrameworkCore.Ydb
55+
public static async Task<YdbTable> DescribeTable(
5456
YdbConnection ydbConnection,
5557
string tableName,
5658
DescribeTableSettings? describeTableSettings = null

0 commit comments

Comments
 (0)