@tsonic/efcore-sqlite 10.0.12 → 10.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +57 -2
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -1,5 +1,60 @@
1
1
  # @tsonic/efcore-sqlite
2
2
 
3
- TypeScript type definitions for `Microsoft.EntityFrameworkCore.Sqlite` (+ dependencies) for .NET 10.
3
+ TypeScript type definitions for **EF Core SQLite provider** (`Microsoft.EntityFrameworkCore.Sqlite` + dependencies) for **.NET 10**.
4
4
 
5
- Generated by `tsbindgen` from NuGet packages and intended for use with the Tsonic compiler.
5
+ Generated by `tsbindgen` from NuGet assemblies and intended for use with the **Tsonic** compiler (TypeScript → .NET).
6
+
7
+ ## What this package is (and isn’t)
8
+
9
+ - ✅ TypeScript bindings for the **SQLite provider** (and its required dependency assemblies).
10
+ - ❌ Not a JavaScript runtime module (the `.js` files are module stubs for type-only use).
11
+ - ✅ You still need the real **.NET assemblies** via NuGet in your Tsonic workspace.
12
+
13
+ ## Install (types)
14
+
15
+ ```bash
16
+ npm install @tsonic/efcore-sqlite @tsonic/efcore @tsonic/dotnet @tsonic/core
17
+ ```
18
+
19
+ ## Use with Tsonic (recommended)
20
+
21
+ Use `tsonic add nuget` and pass this package as the `types` argument:
22
+
23
+ ```bash
24
+ tsonic add nuget Microsoft.EntityFrameworkCore.Sqlite <version> @tsonic/efcore-sqlite
25
+ ```
26
+
27
+ ## Imports
28
+
29
+ Provider APIs are exported under the `Microsoft.EntityFrameworkCore` namespace module in this package:
30
+
31
+ ```ts
32
+ import { SqliteDbContextOptionsBuilderExtensions } from "@tsonic/efcore-sqlite/Microsoft.EntityFrameworkCore.js";
33
+ ```
34
+
35
+ You’ll typically also import EF Core’s base types from `@tsonic/efcore`:
36
+
37
+ ```ts
38
+ import { DbContextOptionsBuilder } from "@tsonic/efcore/Microsoft.EntityFrameworkCore.js";
39
+ ```
40
+
41
+ ## Example (UseSqlite)
42
+
43
+ ```ts
44
+ import { DbContextOptionsBuilder } from "@tsonic/efcore/Microsoft.EntityFrameworkCore.js";
45
+ import { SqliteDbContextOptionsBuilderExtensions } from "@tsonic/efcore-sqlite/Microsoft.EntityFrameworkCore.js";
46
+
47
+ const builder = new DbContextOptionsBuilder();
48
+ SqliteDbContextOptionsBuilderExtensions.UseSqlite(builder, "Data Source=app.db");
49
+ const options = builder.Options;
50
+ ```
51
+
52
+ ## Versioning
53
+
54
+ This repo is versioned by **.NET major**:
55
+
56
+ - .NET 10 → npm: `@tsonic/efcore-sqlite@10.x`
57
+
58
+ ## License
59
+
60
+ MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsonic/efcore-sqlite",
3
- "version": "10.0.12",
3
+ "version": "10.0.20",
4
4
  "description": "TypeScript type definitions for Microsoft.EntityFrameworkCore.Sqlite (+ dependencies) for .NET 10",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -19,9 +19,9 @@
19
19
  "url": "https://github.com/tsoniclang/efcore-sqlite.git"
20
20
  },
21
21
  "peerDependencies": {
22
- "@tsonic/core": "10.0.12",
23
- "@tsonic/dotnet": "10.0.12",
24
- "@tsonic/microsoft-extensions": "10.0.12",
25
- "@tsonic/efcore": "10.0.12"
22
+ "@tsonic/core": "10.0.20",
23
+ "@tsonic/dotnet": "10.0.20",
24
+ "@tsonic/microsoft-extensions": "10.0.20",
25
+ "@tsonic/efcore": "10.0.20"
26
26
  }
27
27
  }