Isoftforge.Core.Database
1.0.0
dotnet add package Isoftforge.Core.Database --version 1.0.0
NuGet\Install-Package Isoftforge.Core.Database -Version 1.0.0
<PackageReference Include="Isoftforge.Core.Database" Version="1.0.0" />
<PackageVersion Include="Isoftforge.Core.Database" Version="1.0.0" />
<PackageReference Include="Isoftforge.Core.Database" />
paket add Isoftforge.Core.Database --version 1.0.0
#r "nuget: Isoftforge.Core.Database, 1.0.0"
#:package Isoftforge.Core.Database@1.0.0
#addin nuget:?package=Isoftforge.Core.Database&version=1.0.0
#tool nuget:?package=Isoftforge.Core.Database&version=1.0.0
Isoftforge.Core.Database
SQL Server ORM and database utilities used by ISOFTFORGE apps. Schema is created/updated at runtime from C# attributes (not Entity Framework).
Install
dotnet add package Isoftforge.Core.Database
Pulls in Isoftforge.Core.Userful and Isoftforge.Core.Security automatically. Target framework: net9.0.
Minimal usage
1. Table entity
using Domain.Package.Core.Database.Context.Core.Attributes;
[DbSchemaName("MyApp")]
[DbTableName("Items")]
public class TbItems
{
[DbPK]
[DbType("uniqueidentifier")]
[DbDefault("newid()")]
[DbName("Uid")]
public Guid Uid { get; set; }
[DbType("varchar")]
[DbLength(200)]
[DbNotNull]
[DbName("Name")]
public string Name { get; set; } = string.Empty;
}
2. Database descriptor + context
using Domain.Package.Core.Database.Context.Core.Attributes;
using Domain.Package.Core.Database.Context.Core.Set;
[DbDatabaseName("mydb")]
public class DbMyApp
{
public TableSet<TbItems> Items { get; set; } = null!;
}
public sealed class DatabaseContext
{
public DatabaseSet<DbMyApp> MyApp { get; set; } = null!;
}
3. DI + schema bootstrap
Register IConstantsService (connection string to SQL Server master), IDbService / DbService, then ensure schema:
using Domain.Package.Core.Database.Context.Core;
using Domain.Package.Core.Database.Context.Core.Configurator;
using Domain.Package.Core.Database.Implementation.Interfaces;
using Domain.Package.Core.Database.Implementation.Services;
DatabaseBootstrapConfiguration.ConfigureAllowSchemaMutation(configuration, environment);
services.AddSingleton<IConstantsService, YourConstantsService>();
services.AddScoped<IDbService, DbService>();
// At startup:
DatabaseContextConfigurator.Configure(new DatabaseContext(), dbService);
Database:AllowSchemaMutation in config overrides the default (enabled in Development).
CRUD
Use IDbService for insert/update/search against attributed entities, or TableSet<T> after configuration.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net9.0
- Isoftforge.Core.Security (>= 1.0.0)
- Isoftforge.Core.Userful (>= 1.0.0)
- Microsoft.Data.SqlClient (>= 5.2.2)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.8)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.8)
- Newtonsoft.Json (>= 13.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 56 | 9/8/2026 |