https://github.com/egbakou/libsqlefcore
.NET 8 Minimal API + EF Core LibSQL + Turso DB
https://github.com/egbakou/libsqlefcore
Last synced: about 1 month ago
JSON representation
.NET 8 Minimal API + EF Core LibSQL + Turso DB
- Host: GitHub
- URL: https://github.com/egbakou/libsqlefcore
- Owner: egbakou
- Created: 2025-06-08T09:30:57.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-06-08T10:07:31.000Z (4 months ago)
- Last Synced: 2025-09-02T03:58:02.306Z (about 1 month ago)
- Language: C#
- Size: 11.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
```bash
> dotnet ef migrations add --verbose AddedTables -s .\LibSqlEfCoreApi\
``````bash
> dotnet ef database update -v -s .\LibSqlEfCoreApi\
Using assembly 'LibSqlEfCoreApi'.
Using startup assembly 'LibSqlEfCoreApi'.
Using application base 'LibSqlEfCore\LibSqlEfCoreApi\bin\Debug\net8.0'.
Using working directory 'LibSqlEfCore\LibSqlEfCoreApi'.
Using root namespace 'LibSqlEfCoreApi'.
Using project directory '\LibSqlEfCore\LibSqlEfCoreApi\'.
Remaining arguments: .
The Entity Framework tools version '8.0.8' is older than that of the runtime '8.0.11'. Update the tools for the latest features and bug fixes. See https://aka.ms/AAc1fbw for more information.
Finding DbContext classes...
Finding IDesignTimeDbContextFactory implementations...
Finding application service provider in assembly 'LibSqlEfCoreApi'...
Finding Microsoft.Extensions.Hosting service provider...
Using environment 'Development'.
Using application service provider from Microsoft.Extensions.Hosting.
Found DbContext 'ApplicationDbContext'.
Finding DbContext classes in the project...
Using context 'ApplicationDbContext'.
Finding design-time services referenced by assembly 'LibSqlEfCoreApi'...
Finding design-time services referenced by assembly 'LibSqlEfCoreApi'...
No referenced design-time services were found.
Finding design-time services for provider 'Microsoft.EntityFrameworkCore.LibSql'...
Using design-time services from provider 'Microsoft.EntityFrameworkCore.LibSql'.
Finding IDesignTimeServices implementations in assembly 'LibSqlEfCoreApi'...
No design-time services were found.
Creating a new database connection...
https://xxxx.turso.io/v2/pipeline;eyJhxxx
Initializing database connection...
Connection is of type HttpDbConnection. Setting up custom functions...
Custom functions initialized successfully.
Database connection initialization completed.
Database connection created successfully.
Start processing HTTP request POST https://xxxx.turso.io/v2/pipeline
Sending HTTP request POST https://xxxx.turso.io/v2/pipeline
Received HTTP response headers after 579.3141ms - 200
End processing HTTP request after 601.3605ms - 200
Executed DbCommand (643ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT COUNT(*) FROM "sqlite_master" WHERE "name" = '__EFMigrationsHistory' AND "type" = 'table';
Building convention set for LibSQL.
Replacing conventions with LibSQL-specific conventions.
LibSQL-specific conventions have been applied.
Start processing HTTP request POST https://xxxx.turso.io/v2/pipeline
Sending HTTP request POST https://xxxx.turso.io/v2/pipeline
Received HTTP response headers after 77.7527ms - 200
End processing HTTP request after 78.7223ms - 200
Executed DbCommand (88ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE TABLE "__EFMigrationsHistory" (
"MigrationId" TEXT NOT NULL CONSTRAINT "PK___EFMigrationsHistory" PRIMARY KEY,
"ProductVersion" TEXT NOT NULL
);
Start processing HTTP request POST https://xxxx.turso.io/v2/pipeline
Sending HTTP request POST https://xxxx.turso.io/v2/pipeline
Received HTTP response headers after 28.6357ms - 200
End processing HTTP request after 29.2512ms - 200
Executed DbCommand (30ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT COUNT(*) FROM "sqlite_master" WHERE "name" = '__EFMigrationsHistory' AND "type" = 'table';
Start processing HTTP request POST https://xxxx.turso.io/v2/pipeline
Sending HTTP request POST https://xxxx.turso.io/v2/pipeline
Received HTTP response headers after 28.3813ms - 200
End processing HTTP request after 29.6756ms - 200
Executed DbCommand (53ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT "MigrationId", "ProductVersion"
FROM "__EFMigrationsHistory"
ORDER BY "MigrationId";
Applying migration '20250607231420_AddedTables'.
Start processing HTTP request POST https://xxxx.turso.io/v2/pipeline
Sending HTTP request POST https://xxxx.turso.io/v2/pipeline
Received HTTP response headers after 53.1975ms - 200
End processing HTTP request after 54.1677ms - 200
Executed DbCommand (56ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE TABLE "Users" (
"Id" INTEGER NOT NULL CONSTRAINT "PK_Users" PRIMARY KEY AUTOINCREMENT,
"FirstName" TEXT NOT NULL,
"LastName" TEXT NOT NULL,
"Email" TEXT NOT NULL,
"CreatedAt" TEXT NOT NULL,
"UpdatedAt" TEXT NULL
);
Start processing HTTP request POST https://xxxx.turso.io/v2/pipeline
Sending HTTP request POST https://xxxx.turso.io/v2/pipeline
Received HTTP response headers after 49.4734ms - 200
End processing HTTP request after 50.3868ms - 200
Executed DbCommand (51ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE UNIQUE INDEX "IX_Users_Email" ON "Users" ("Email");
Start processing HTTP request POST https://xxxx.turso.io/v2/pipeline
Sending HTTP request POST https://xxxx.turso.io/v2/pipeline
Received HTTP response headers after 46.85ms - 200
End processing HTTP request after 47.7425ms - 200
Executed DbCommand (49ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20250607231420_AddedTables', '8.0.11');
Done.```