File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed
Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 22using ServiceStack . Data ;
33using ServiceStack . OrmLite ;
44using MyApp . Data ;
5+ using Microsoft . EntityFrameworkCore . Diagnostics ;
56
67[ assembly: HostingStartup ( typeof ( MyApp . ConfigureDb ) ) ]
78
@@ -12,14 +13,16 @@ public class ConfigureDb : IHostingStartup
1213 public void Configure ( IWebHostBuilder builder ) => builder
1314 . ConfigureServices ( ( context , services ) => {
1415 var connectionString = context . Configuration . GetConnectionString ( "DefaultConnection" )
15- ?? "DataSource=App_Data/app.db;Cache=Shared" ;
16+ ?? "DataSource=App_Data/app.db;Cache=Shared" ;
1617
1718 services . AddOrmLite ( options => options . UseSqlite ( connectionString ) ) ;
1819
1920 // $ dotnet ef migrations add CreateIdentitySchema
2021 // $ dotnet ef database update
21- services . AddDbContext < ApplicationDbContext > ( options =>
22- options . UseSqlite ( connectionString , b => b . MigrationsAssembly ( nameof ( MyApp ) ) ) ) ;
22+ services . AddDbContext < ApplicationDbContext > ( options => {
23+ options . UseSqlite ( connectionString , b => b . MigrationsAssembly ( nameof ( MyApp ) ) ) ;
24+ options . ConfigureWarnings ( w => w . Ignore ( RelationalEventId . PendingModelChangesWarning ) ) ;
25+ } ) ;
2326
2427 // Enable built-in Database Admin UI at /admin-ui/database
2528 services . AddPlugin ( new AdminDatabaseFeature ( ) ) ;
Original file line number Diff line number Diff line change 2323 <PackageReference Include =" Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version =" 10.*" />
2424 <PackageReference Include =" Microsoft.EntityFrameworkCore.Sqlite" Version =" 10.*" />
2525 <PackageReference Include =" Microsoft.EntityFrameworkCore.Tools" Version =" 10.*" />
26- <PackageReference Include =" Markdig" Version =" 0.43 .*" />
26+ <PackageReference Include =" Markdig" Version =" 0.44 .*" />
2727 </ItemGroup >
2828
2929 <ItemGroup >
Original file line number Diff line number Diff line change 11{
22 "scripts" : {
33 "postinstall" : " node postinstall.js && npm run migrate" ,
4- "dtos" : " x mjs" ,
4+ "dtos" : " npx get-dtos mjs" ,
55 "dev" : " dotnet watch" ,
66 "ui:dev" : " tailwindcss -i ./tailwind.input.css -o ./wwwroot/css/app.css --watch" ,
77 "ui:build" : " tailwindcss -i ./tailwind.input.css -o ./wwwroot/css/app.css --minify" ,
You can’t perform that action at this time.
0 commit comments