Skip to content

Commit 6350ce0

Browse files
fix examples
1 parent 61aae38 commit 6350ce0

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

examples/src/EF/EF.csproj

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,14 @@
99
</PropertyGroup>
1010

1111
<ItemGroup>
12-
<ProjectReference Include="..\..\..\src\EfCore.Ydb\src\EfCore.Ydb.csproj"/>
12+
<ProjectReference Include="..\..\..\src\EfCore.Ydb\src\EfCore.Ydb.csproj" />
13+
</ItemGroup>
14+
15+
<ItemGroup>
16+
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="9.0.3">
17+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
18+
<PrivateAssets>all</PrivateAssets>
19+
</PackageReference>
1320
</ItemGroup>
1421

1522
</Project>

examples/src/EF/Program.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
db.Remove(blog);
2424
await db.SaveChangesAsync();
2525

26+
await db.Database.EnsureDeletedAsync();
27+
2628
internal class BloggingContext : DbContext
2729
{
2830
public DbSet<Blog> Blogs { get; set; }

0 commit comments

Comments
 (0)