Funcular.Data.Orm
2.0.0
See the version list below for details.
dotnet add package Funcular.Data.Orm --version 2.0.0
NuGet\Install-Package Funcular.Data.Orm -Version 2.0.0
<PackageReference Include="Funcular.Data.Orm" Version="2.0.0" />
<PackageVersion Include="Funcular.Data.Orm" Version="2.0.0" />
<PackageReference Include="Funcular.Data.Orm" />
paket add Funcular.Data.Orm --version 2.0.0
#r "nuget: Funcular.Data.Orm, 2.0.0"
#:package Funcular.Data.Orm@2.0.0
#addin nuget:?package=Funcular.Data.Orm&version=2.0.0
#tool nuget:?package=Funcular.Data.Orm&version=2.0.0
Recent Changes
- v2.0.0: Major release. Breaking change to
Query<T>(predicate), safety enhancements for Deletes, chainedWhereclauses.- v1.6.0: Fix for closure predicates, added CI/CD.
- v1.5.2: Fix for unmapped properties.
Funcular / Funky ORM: a speedy, lambda-powered .NET ORM designed for MSSQL
Overview
Welcome to Funcular ORM (aka FunkyORM), the micro-ORM designed for developers who want the speed of a micro-ORM with the simplicity and type safety of LINQ.
If you're tired of wrestling with raw SQL strings (Dapper) or debugging generated queries from a heavy framework (Entity Framework), FunkyORM is your sweet spot.
Why FunkyORM?
- Instant Lambda Queries: Write C# lambda expressions, get optimized SQL.
- Performance: Outperforms EF Core in single-row writes and matches it in reads. (See our Usage Guide for benchmarks).
- Zero Configuration: No
DbContext, no mapping files. Just POCOs and a connection string. - Safe: All queries are parameterized to prevent SQL injection.
- Mass Delete Prevention: Includes safeguards against accidental "delete all" operations (e.g., blocking
1=1), though this does not guarantee prevention of all crafty circumventions. - Convention over Configuration: Sensible defaults for primary key naming conventions (like
id,tablename_id, orTableNameId) mean less boilerplate and more productivity. - Cached Reflection: Funcular ORM caches reflection results to minimize overhead and maximize performance.
Getting Started
Install the NuGet package Funcular.Data.Orm and initialize the provider:
using Funcular.Data.Orm.SqlServer;
var provider = new SqlServerOrmDataProvider("Server=.;Database=MyDb;Integrated Security=True;TrustServerCertificate=True;");
Basic Usage
// Insert
provider.Insert(new Person { FirstName = "Jane", LastName = "Doe" });
// Query
var adults = provider.Query<Person>()
.Where(p => p.Age >= 18)
.OrderBy(p => p.LastName)
.ToList();
Documentation
For detailed usage examples, performance benchmarks, and a comparison with other ORMs, please see our Usage Guide.
Comparison: FunkyORM vs. The World
| Feature | Entity Framework | Dapper | FunkyORM |
|---|---|---|---|
| Setup | Heavy (DbContext, Config) | Light | Lightest |
| Query Style | LINQ | SQL Strings | LINQ |
| Performance | Good (if tuned) | Excellent | Excellent |
| Mapping | Strict (needs config) | Manual/Strict | Forgiving/Auto |
| SQL Injection | Protected | Manual Parameterization | Protected |
| Vibe | Enterprise Java | Hardcore Metal | Cool Jazz |
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. 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. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 is compatible. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.8
- Microsoft.Data.SqlClient (>= 6.0.0)
- System.ComponentModel.Annotations (>= 5.0.0)
-
.NETStandard 2.0
- Microsoft.Data.SqlClient (>= 6.0.0)
- System.ComponentModel.Annotations (>= 5.0.0)
- System.Data.Common (>= 4.3.0)
-
net8.0
- Microsoft.Data.SqlClient (>= 6.0.0)
- System.ComponentModel.Annotations (>= 5.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.