ForgeORM.SchemaOps 1.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package ForgeORM.SchemaOps --version 1.0.1
                    
NuGet\Install-Package ForgeORM.SchemaOps -Version 1.0.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ForgeORM.SchemaOps" Version="1.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ForgeORM.SchemaOps" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="ForgeORM.SchemaOps" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ForgeORM.SchemaOps --version 1.0.1
                    
#r "nuget: ForgeORM.SchemaOps, 1.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ForgeORM.SchemaOps@1.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ForgeORM.SchemaOps&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=ForgeORM.SchemaOps&version=1.0.1
                    
Install as a Cake Tool

ForgeORM

High-performance next-generation .NET ORM combining the power of raw SQL, Dapper-level speed, EF Core-style developer experience, compile-time safety, dynamic query generation, schema artifacts, split-query relationship loading, and advanced database tooling.


Vision

ForgeORM is designed to become:

  • Faster than EF Core
  • More developer friendly than Dapper
  • SQL-first without losing type safety
  • Database transparent
  • IDE-aware
  • Multi-database
  • Enterprise-ready
  • Cloud-native
  • AI-assisted
  • Compile-time optimized

ForgeORM provides:

  • Raw SQL execution
  • Strongly typed query AST
  • Dynamic query builder
  • Stored procedures
  • Functions
  • Bulk operations
  • Split query relationship loading
  • Artifact management
  • Query visualization
  • Query analytics
  • Smart pagination
  • Optional filtering
  • Dynamic search APIs
  • Automatic schema history
  • Future Roslyn + Source Generator support

Supported Databases

Database Support
SQL Server ✅
SQL Express ✅
PostgreSQL ✅
MySQL ✅
Oracle ✅
SQLite ✅

Core Philosophy

ForgeORM supports ALL development styles:

Style Supported
Raw SQL ✅
Dapper-like ✅
EF-like expressions ✅
Dynamic query builder ✅
AST query builder ✅
Stored procedures ✅
Functions ✅
Views ✅
Temp tables ✅
CTEs ✅
Split queries ✅
Bulk operations ✅

Installation

dotnet add package ForgeORM.SqlServer
dotnet add package ForgeORM.PostgreSql
dotnet add package ForgeORM.MySql
dotnet add package ForgeORM.Oracle


# Configuration

```bash
{
  "ConnectionStrings": {
    "DefaultConnection": "Data Source=<DatabaseServer>;Initial Catalog=ForgeOrmDb;Integrated Security=True;TrustServerCertificate=True;"
  }
}

# Installation

```csharp

builder.Services.AddForgeOrm(options =>
{
    options.UseSqlServer(
        builder.Configuration.GetConnectionString("DefaultConnection"));

    options.EnableQueryLogging();
    options.EnableQueryAnalytics();
    options.EnableArtifactHistory();
});


Quick Start
```csharp
var products = await db.QueryAsync<Product>(
    "SELECT * FROM Products WHERE Price > @Price",
    new { Price = 100 });

AST Query Builder

var query = ForgeSql
    .Select<Product>()
    .From("Products p")
    .LeftJoin<Category>((p, c) => p.CategoryId == c.Id)
    .Columns(
        "p.Id",
        "p.Name",
        "p.Price",
        "c.Name AS CategoryName")
    .Where(x => x.Price > 100)
    .OrderByDescending(x => x.Id)
    .Take(20)
    .Render(db.ProviderName);

Universal Search API

var result = await db.Search<Product>()
    .Where(x => x.Price >= minPrice)
    .WhereIf(categoryId != null,
        x => x.CategoryId == categoryId)
    .Page(page, pageSize)
    .ToPagedAsync();

Bulk Operations

await db.BulkInsertAsync("Products", rows);

await db.BulkUpdateAsync(
    "Products",
    rows,
    x => x.Id);

await db.BulkDeleteAsync<Product>(
    x => ids.Contains(x.Id));

Split Query Loading

var customers = await db.SplitGraph<Customer>()
    .IncludeMany<Order, int>(
        ids => "SELECT * FROM Orders WHERE CustomerId IN @Ids",
        c => c.Id,
        o => o.CustomerId,
        (c, orders) => c.Orders = orders.ToList())
    .ToListAsync("SELECT * FROM Customers");

Artifact System

var artifact = ForgeSql
    .Select<Product>()
    .From("Products")
    .AsView("vw_ProductList")
    .Render(db.ProviderName);

Swagger

https://localhost:5001/swagger

Philosophy ForgeORM is: SQL-first strongly typed performance-first transparent enterprise-grade future-ready Author Developed by Raheel Ahmed

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on ForgeORM.SchemaOps:

Package Downloads
ForgeORM.AI.Advanced

AI optimization, diagnostics, code generation, migrations and vector-aware query services.

ForgeORM.AspNetCore

ASP.NET Core dependency injection integration for ForgeORM.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.4.0 285 5/29/2026
1.3.8 217 5/26/2026
1.3.7 202 5/20/2026
1.3.6 202 5/19/2026
1.3.5 204 5/17/2026
1.3.4 195 5/16/2026
1.3.3 203 5/16/2026
1.3.2 196 5/15/2026
1.3.1 204 5/15/2026
1.3.0 207 5/14/2026
1.2.0 161 5/14/2026
1.1.0 169 5/14/2026
1.0.2 166 5/14/2026
1.0.1 144 5/13/2026
1.0.0-preview.1 92 5/12/2026