File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed
Infrastructure.Persistence Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 1+ using Domain . Entities ;
2+ using Microsoft . EntityFrameworkCore ;
3+ using System ;
4+ using System . Collections . Generic ;
5+ using System . Text ;
6+
7+ namespace Infrastructure . Persistence . Contexts
8+ {
9+ public class RepositoryContext : DbContext
10+ {
11+ public RepositoryContext ( DbContextOptions options )
12+ : base ( options )
13+ {
14+ }
15+
16+ public DbSet < Product > Products { get ; set ; }
17+ }
18+ }
Original file line number Diff line number Diff line change 55 </PropertyGroup >
66
77 <ItemGroup >
8- <Folder Include =" Contexts\" />
8+ <PackageReference Include =" Microsoft.EntityFrameworkCore" Version =" 5.0.2" />
9+ </ItemGroup >
10+
11+ <ItemGroup >
12+ <ProjectReference Include =" ..\Domain\Domain.csproj" />
913 </ItemGroup >
1014
1115</Project >
You can’t perform that action at this time.
0 commit comments