File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212builder . Services . AddRazorPages ( ) ;
1313
1414builder . Services . AddDbContext < InventoryDbContext > ( options =>
15- options . UseMySQL ( builder . Configuration . GetConnectionString ( "AZURE_MYSQL_CONNECTIONSTRING" ) ) ) ;
15+ //options.UseMySQL(builder.Configuration.GetConnectionString("AZURE_MYSQL_CONNECTIONSTRING"))
16+ options . UseInMemoryDatabase ( "TechInventoryDB" ) ;
17+ ) ;
1618
1719builder . Services . AddScoped < IUnitOfWork , UnitOfWork > ( ) ;
1820builder . Services . AddScoped < IDeviceService , DeviceService > ( ) ;
Original file line number Diff line number Diff line change 1212 <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
1313 <PrivateAssets >all</PrivateAssets >
1414 </PackageReference >
15+ <PackageReference Include =" Microsoft.EntityFrameworkCore.InMemory" Version =" 8.0.0" />
1516 <PackageReference Include =" MySql.EntityFrameworkCore" Version =" 8.0.0" />
1617 </ItemGroup >
1718
You can’t perform that action at this time.
0 commit comments