@tsonic/efcore-sqlite 10.0.11 → 10.0.16

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.
@@ -9,7 +9,7 @@ import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint12
9
9
  import type { ptr } from "@tsonic/core/types.js";
10
10
 
11
11
  // Import types from other namespaces
12
- import * as System_Internal from "@tsonic/dotnet/System.js";
12
+ import * as System_Internal from "@tsonic/dotnet/System/internal/index.js";
13
13
  import type { Dictionary_2 } from "@tsonic/dotnet/System.Collections.Generic/internal/index.js";
14
14
  import type { Boolean as ClrBoolean, Nullable_1, Object as ClrObject, String as ClrString, Void } from "@tsonic/dotnet/System/internal/index.js";
15
15
  import type { IConventionPropertyBuilder } from "@tsonic/efcore/Microsoft.EntityFrameworkCore.Metadata.Builders/internal/index.js";
@@ -6,7 +6,7 @@
6
6
  import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
7
7
 
8
8
  // Import types from other namespaces
9
- import * as System_Internal from "@tsonic/dotnet/System.js";
9
+ import * as System_Internal from "@tsonic/dotnet/System/internal/index.js";
10
10
  import type { Func_3, String as ClrString, Type } from "@tsonic/dotnet/System/internal/index.js";
11
11
  import * as Microsoft_EntityFrameworkCore_Diagnostics_Internal from "@tsonic/efcore/Microsoft.EntityFrameworkCore.Diagnostics/internal/index.js";
12
12
  import type { EventData, EventDefinitionBase, RelationalLoggingDefinitions } from "@tsonic/efcore/Microsoft.EntityFrameworkCore.Diagnostics/internal/index.js";
@@ -9,7 +9,7 @@ import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint12
9
9
  import type { ptr } from "@tsonic/core/types.js";
10
10
 
11
11
  // Import types from other namespaces
12
- import * as System_Internal from "@tsonic/dotnet/System.js";
12
+ import * as System_Internal from "@tsonic/dotnet/System/internal/index.js";
13
13
  import type { IReadOnlyList_1 } from "@tsonic/dotnet/System.Collections.Generic/internal/index.js";
14
14
  import type { Boolean as ClrBoolean, String as ClrString, Void } from "@tsonic/dotnet/System/internal/index.js";
15
15
  import type { IDiagnosticsLogger_1 } from "@tsonic/efcore/Microsoft.EntityFrameworkCore.Diagnostics/internal/index.js";
@@ -6,7 +6,7 @@
6
6
  import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
7
7
 
8
8
  // Import types from other namespaces
9
- import * as System_Internal from "@tsonic/dotnet/System.js";
9
+ import * as System_Internal from "@tsonic/dotnet/System/internal/index.js";
10
10
  import type { DbConnection } from "@tsonic/dotnet/System.Data.Common/internal/index.js";
11
11
  import type { String as ClrString, Void } from "@tsonic/dotnet/System/internal/index.js";
12
12
  import type { MethodCallCodeFragment } from "@tsonic/efcore/Microsoft.EntityFrameworkCore.Design/internal/index.js";
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.11",
3
+ "version": "10.0.16",
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.11",
23
- "@tsonic/dotnet": "10.0.11",
24
- "@tsonic/microsoft-extensions": "10.0.11",
25
- "@tsonic/efcore": "10.0.11"
22
+ "@tsonic/core": "10.0.16",
23
+ "@tsonic/dotnet": "10.0.16",
24
+ "@tsonic/microsoft-extensions": "10.0.16",
25
+ "@tsonic/efcore": "10.0.16"
26
26
  }
27
27
  }