EntitySpaces.ORM.SqlServer
2020.1.3
See the version list below for details.
dotnet add package EntitySpaces.ORM.SqlServer --version 2020.1.3
NuGet\Install-Package EntitySpaces.ORM.SqlServer -Version 2020.1.3
<PackageReference Include="EntitySpaces.ORM.SqlServer" Version="2020.1.3" />
paket add EntitySpaces.ORM.SqlServer --version 2020.1.3
#r "nuget: EntitySpaces.ORM.SqlServer, 2020.1.3"
// Install EntitySpaces.ORM.SqlServer as a Cake Addin #addin nuget:?package=EntitySpaces.ORM.SqlServer&version=2020.1.3 // Install EntitySpaces.ORM.SqlServer as a Cake Tool #tool nuget:?package=EntitySpaces.ORM.SqlServer&version=2020.1.3
A Fluent SQL API
EntitySpaces is a Fluent API for SQL Server, SQLite, MySQL, PostgreSQL, and more on the way. If you are familiar with the SQL syntax then you are already an EntitySpaces expert. EntitySpaces is also high performance, transactional, and very intuitive. EntitySpaces Studio is used to generate your C# classes from your database schema.
Example Query
In this example we are going to sum the total # of items for each order. Each order can have many order detail records so we group our query by OrderId and sum up the quantity as 'TotalQuantity'. Notice that we can access the derived 'TotalQuantity' column through the dynamic property.
OrdersCollection coll = new OrdersQuery("o", out var o)
.InnerJoin<OrderDetailsQuery>("od", out var od).On(o.OrderID == od.OrderID)
.Select(o.OrderID, od.Quantity.Sum().As("TotalQuantity"))
.GroupBy(o.OrderID)
.OrderBy(o.OrderID.Ascending)
.ToCollection<OrdersCollection>();
foreach(Orders order in coll)
{
Console.WriteLine(order.OrderID + " : " + order.dynamic.TotalQuantity);
}
The SQL generated is just as you would expect.
SELECT o.[OrderID], SUM(od.[Quantity]) AS 'TotalQuantity'
FROM [Orders] o
INNER JOIN [Order Details] od ON o.[OrderID] = od.[OrderID]
GROUP BY o.[OrderID]
ORDER BY o.[OrderID] ASC
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 was computed. 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. |
.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 was computed. 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. |
-
.NETStandard 2.0
- Microsoft.CSharp (>= 4.5.0)
- Microsoft.EntityFrameworkCore.SqlServer (>= 2.2.6)
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 |
---|---|---|
2020.2.1 | 3,461 | 2/1/2020 |
2020.1.15.1 | 1,023 | 1/15/2020 |
2020.1.15 | 1,016 | 1/15/2020 |
2020.1.10 | 1,076 | 1/10/2020 |
2020.1.3 | 997 | 1/3/2020 |
2019.12.20 | 1,061 | 12/20/2019 |
2019.12.18 | 997 | 12/18/2019 |
2019.12.16 | 1,005 | 12/16/2019 |
2019.12.14 | 967 | 12/14/2019 |
2019.12.12 | 998 | 12/12/2019 |
2019.12.9 | 986 | 12/9/2019 |
2019.12.8.1 | 983 | 12/9/2019 |
2019.12.8 | 1,000 | 12/9/2019 |
2019.12.5 | 969 | 12/6/2019 |
2019.11.21 | 1,031 | 11/21/2019 |
2019.11.20 | 996 | 11/20/2019 |
2019.11.14 | 1,451 | 11/14/2019 |
2019.11.6 | 1,017 | 11/6/2019 |
2019.11.4.1 | 1,068 | 11/4/2019 |
2019.11.4 | 961 | 11/4/2019 |
2019.9.20 | 1,088 | 9/20/2019 |
2019.8.28 | 1,061 | 8/28/2019 |
2019.8.27.1 | 991 | 8/27/2019 |
2019.8.27 | 1,032 | 8/27/2019 |
2019.8.26 | 963 | 8/26/2019 |
2019.8.23 | 1,021 | 8/23/2019 |
2019.8.22 | 961 | 8/22/2019 |
2019.8.14 | 983 | 8/14/2019 |
2019.8.13 | 991 | 8/13/2019 |
2019.8.7 | 1,024 | 8/8/2019 |
2019.7.31 | 1,097 | 7/31/2019 |
2019.7.23.4 | 1,028 | 7/23/2019 |
2019.7.23.3 | 1,846 | 7/23/2019 |
2019.7.23.2 | 2,123 | 7/23/2019 |
2019.7.23.1 | 2,084 | 7/23/2019 |
2019.7.23 | 2,034 | 7/23/2019 |
2019.7.22 | 1,025 | 7/22/2019 |
2019.7.19.1 | 1,041 | 7/19/2019 |
2019.7.19 | 1,015 | 7/19/2019 |
2019.7.7.2 | 1,032 | 7/8/2019 |
2019.7.7.1 | 1,060 | 7/8/2019 |
2019.7.7 | 1,049 | 7/8/2019 |
1.0.0 | 1,067 | 7/1/2019 |
esEntity.dynamic tweak