We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95a32dc commit 3d1d6a0Copy full SHA for 3d1d6a0
MyApp/Configure.Db.cs
@@ -14,8 +14,7 @@ public void Configure(IWebHostBuilder builder) => builder
14
var connectionString = context.Configuration.GetConnectionString("DefaultConnection")
15
?? "DataSource=App_Data/app.db;Cache=Shared";
16
17
- services.AddSingleton<IDbConnectionFactory>(new OrmLiteConnectionFactory(
18
- connectionString, SqliteDialect.Provider));
+ services.AddOrmLite(options => options.UseSqlite(connectionString));
19
20
// $ dotnet ef migrations add CreateIdentitySchema
21
// $ dotnet ef database update
0 commit comments