EntitySpaces.ORM.SqlServer 2019.7.7.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package EntitySpaces.ORM.SqlServer --version 2019.7.7.2
                    
NuGet\Install-Package EntitySpaces.ORM.SqlServer -Version 2019.7.7.2
                    
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="EntitySpaces.ORM.SqlServer" Version="2019.7.7.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="EntitySpaces.ORM.SqlServer" Version="2019.7.7.2" />
                    
Directory.Packages.props
<PackageReference Include="EntitySpaces.ORM.SqlServer" />
                    
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 EntitySpaces.ORM.SqlServer --version 2019.7.7.2
                    
#r "nuget: EntitySpaces.ORM.SqlServer, 2019.7.7.2"
                    
#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 EntitySpaces.ORM.SqlServer@2019.7.7.2
                    
#: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=EntitySpaces.ORM.SqlServer&version=2019.7.7.2
                    
Install as a Cake Addin
#tool nuget:?package=EntitySpaces.ORM.SqlServer&version=2019.7.7.2
                    
Install as a Cake Tool

A Simple Sample with an InnerJoin

The sample below demonstrates a self join on the Employees table which is looking for all employees with an 'a' in their last name who have people reporting to them. Kind of silly but it shows off the syntax.

EmployeeQuery q = new EmployeeQuery("e");   // Employees
EmployeeQuery q1 = new EmployeeQuery("e1"); // ReportsTo

q.Select(q.EmployeeID, q.LastName)  // To bind to combobox
    .Where(q.LastName.Like("%a%"))
    .InnerJoin(q1).On(q.EmployeeID == q1.ReportsTo)
    .OrderBy(q.LastName.Descending);

EmployeesCollection coll = new  EmployeesCollection();
if(coll.Load(q))
{
    // Then we loaded at least one record
    foreach(Empoyees emp in coll)
    {
        // do something
    }
}

Notice that the SQL is extremely lean.

NOTE: InnerJoin is used above, also supported are RightJoin, LeftJoin, CrossJoin, and FullJoin.

Results from the Query Above

SELECT
   e.[EmployeeID],
   e.[LastName]  
FROM
   [Employees] e 
INNER JOIN [Employees] e1 
   ON e.[EmployeeID] = e1.[ReportsTo] 
WHERE
   e.[LastName] LIKE @LastName1 
ORDER BY
   e.[LastName] DESC

Compare that SQL to the SQL generated by a Entity Framework query which does the same thing and you'll be shocked.

Product 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.  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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

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,681 2/1/2020
2020.1.15.1 1,101 1/15/2020
2020.1.15 1,094 1/15/2020
2020.1.10 1,152 1/10/2020
2020.1.3 1,080 1/3/2020
2019.12.20 1,136 12/20/2019
2019.12.18 1,076 12/18/2019
2019.12.16 1,087 12/16/2019
2019.12.14 1,046 12/14/2019
2019.12.12 1,077 12/12/2019
2019.12.9 1,063 12/9/2019
2019.12.8.1 1,062 12/9/2019
2019.12.8 1,080 12/9/2019
2019.12.5 1,076 12/6/2019
2019.11.21 1,108 11/21/2019
2019.11.20 1,077 11/20/2019
2019.11.14 1,530 11/14/2019
2019.11.6 1,097 11/6/2019
2019.11.4.1 1,149 11/4/2019
2019.11.4 1,039 11/4/2019
2019.9.20 1,167 9/20/2019
2019.8.28 1,141 8/28/2019
2019.8.27.1 1,071 8/27/2019
2019.8.27 1,113 8/27/2019
2019.8.26 1,043 8/26/2019
2019.8.23 1,105 8/23/2019
2019.8.22 1,043 8/22/2019
2019.8.14 1,066 8/14/2019
2019.8.13 1,093 8/13/2019
2019.8.7 1,104 8/8/2019
2019.7.31 1,197 7/31/2019
2019.7.23.4 1,115 7/23/2019
2019.7.23.3 1,941 7/23/2019
2019.7.23.2 2,206 7/23/2019
2019.7.23.1 2,166 7/23/2019
2019.7.23 2,118 7/23/2019
2019.7.22 1,108 7/22/2019
2019.7.19.1 1,130 7/19/2019
2019.7.19 1,097 7/19/2019
2019.7.7.2 1,116 7/8/2019
2019.7.7.1 1,141 7/8/2019
2019.7.7 1,134 7/8/2019
1.0.0 1,153 7/1/2019