Skip to content

Commit 3d1d6a0

Browse files
committed
update
1 parent 95a32dc commit 3d1d6a0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

MyApp/Configure.Db.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ public void Configure(IWebHostBuilder builder) => builder
1414
var connectionString = context.Configuration.GetConnectionString("DefaultConnection")
1515
?? "DataSource=App_Data/app.db;Cache=Shared";
1616

17-
services.AddSingleton<IDbConnectionFactory>(new OrmLiteConnectionFactory(
18-
connectionString, SqliteDialect.Provider));
17+
services.AddOrmLite(options => options.UseSqlite(connectionString));
1918

2019
// $ dotnet ef migrations add CreateIdentitySchema
2120
// $ dotnet ef database update

0 commit comments

Comments
 (0)