Simple ORM .NET
An ORM with no reflection
A familiar DbContext and DbSet style, with all mapping and SQL generated at compile time. Built-in drivers for PostgreSQL and SQLite.
dotnet add package SimpleORMDotNet
.NET 10+
Native AOT
Apache 2.0
Program.cs
using SimpleORMDotNet;
using SimpleORMDotNet.Entities;
using var db = new AppDbContext();
db.Customers.Add(new Customer { Name = "John Doe", Email = "[email protected]" });
await db.SaveChangesAsync();
[Entity]
public class Customer
{
[PrimaryKey]
public int Id { get; set; }
[Column("full_name")]
public string Name { get; set; }
public string Email { get; set; }
}
public class AppDbContext : DbContext
{
public StaticSet<Customer> Customers { get; set; }
protected override void OnConfiguring(DbContextOptions options)
{
options.UsePostgreSQL("Host=localhost;Database=mydb;Username=user;Password=pass");
}
}
What's included
Simple, fast data access for modern .NET.
Zero reflection
Roslyn source generators handle all mapping and SQL at compile time.
Self-sufficient
Built-in PostgreSQL and SQLite drivers, with no external dependencies.
Thread-safe
Integrated connection pooling and thread-safe context management.
AOT ready
Works with .NET Native AOT compilation.
Documentation
Guides and reference on the project's wiki.