ZayniFramework.DataAccess.LightORM 2.3.0

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

Using DataContext template to execute CRUD methods.

Add using.

using ZayniFramework.Common;
using ZayniFramework.DataAccess.Lightweight;

Write your own DataContext class and extends the DataContext class.

/// <summary>Your DataContext class.
/// </summary>
internal class UserDataContext : DataContext<UserReqArgs, UserModel>

Then you can do some CRUD action like...<br/>

DataContext.Insert();<br/> DataContext.Update();<br/> DataContext.Delete();<br/> DataContext.Select();<br/>

var model = new UserModel()
{
    Account = "Amber",
    Name    = "Amber Jane",
    Age     = 22,
    DOB     = new DateTime( 1993, 2, 17 ),
    Sex     = 0,
    IsVip   = true
};

var reqArgs = new UserReqArgs()
{
    Account = "Amber"
};

var wheres = new SqlParameter[] 
{ 
    new SqlParameter() { ColumnName = "AccountId", Name = "Account",  DbType = DbTypeCode.String, Value = "Amber001" },
    new SqlParameter() { ColumnName = "Name",      Name = "UserName", DbType = DbTypeCode.String, Value = "Amber" }
};

var r = dataContext.Select( new SelectInfo<UserReqArgs>() { DataContent = reqArgs } );
var c = dataContext.Insert( model );
var u = dataContext.Update( model, wheres: wheres, ignoreColumns: new string[] { "Birthday", "IsVIP" } );
var d = dataContext.Delete( model );

More DataContext examples. You can go to here and here.

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.

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
8.0.142 248 3/19/2024
8.0.141 1,909 1/4/2024
8.0.140 566 12/17/2023
6.0.138 133 3/19/2024
6.0.137 199 9/20/2023
6.0.136 176 9/14/2023
6.0.135 201 9/10/2023
6.0.134 212 7/12/2023
6.0.133 220 7/10/2023
6.0.132 208 7/7/2023
6.0.131 218 6/19/2023
6.0.130 212 6/19/2023
6.0.129 8,500 7/2/2022
6.0.128 423 1/16/2022
6.0.127 570 1/15/2022
6.0.126 543 1/15/2022
6.0.125 387 1/8/2022
6.0.125-hotfix1 288 1/8/2022
6.0.124 423 1/7/2022
6.0.123 500 11/14/2021
5.0.129 554 7/2/2022
5.0.128 581 1/16/2022
5.0.125 381 1/8/2022
5.0.124 401 1/7/2022
5.0.123 532 11/14/2021
5.0.122 584 10/11/2021
5.0.121 2,397 5/1/2021
3.1.137 239 9/20/2023
3.1.136 182 9/14/2023
3.1.135 196 9/10/2023
3.1.134 214 7/12/2023
3.1.133 213 7/11/2023
3.1.132 214 7/8/2023
3.1.131 185 6/19/2023
3.1.130 340 2/1/2023
3.1.129 556 7/2/2022
3.1.128 641 1/16/2022
3.1.125 387 1/8/2022
3.1.124 400 1/7/2022
3.1.123 566 11/14/2021
3.1.122 466 10/11/2021
3.1.121 603 5/1/2021
2.31.120 577 3/14/2021
2.30.115 2,028 3/6/2021
2.30.114 491 3/6/2021
2.20.101 550 3/1/2021
2.19.3 530 2/11/2021
2.19.2 10,102 2/6/2021
2.19.1 580 1/6/2021
2.19.0 655 1/1/2021
2.18.3 663 12/27/2020
2.18.2 871 8/29/2020
2.18.1 645 8/26/2020
2.18.0 4,852 8/20/2020
2.17.135 724 8/19/2020
2.17.134 749 7/28/2020
2.17.133 729 7/27/2020
2.17.132 734 7/18/2020
2.17.131 787 7/11/2020
2.16.130 771 6/13/2020
2.15.128 762 6/3/2020
2.15.127 818 5/31/2020
2.15.126 1,249 4/30/2020
2.14.122 686 4/13/2020
2.13.100 730 3/12/2020
2.12.51 809 2/18/2020
2.11.50 1,387 2/10/2020
2.10.44 1,427 1/30/2020
2.9.43 1,597 1/11/2020
2.8.42 1,392 1/10/2020
2.8.41 1,409 1/5/2020
2.7.40 1,424 1/2/2020
2.7.39 1,390 1/2/2020
2.7.38 1,528 1/1/2020
2.6.37 1,411 12/23/2019
2.6.35 1,598 12/4/2019
2.6.1 1,304 12/2/2019
2.6.0 1,346 11/28/2019
2.5.2 1,569 11/26/2019
2.5.1 1,485 11/12/2019
2.5.0 1,337 11/9/2019
2.4.3 1,565 10/16/2019
2.4.2 1,452 10/16/2019
2.4.1 1,534 9/20/2019
2.3.113 519 3/6/2021
2.3.112 519 3/6/2021
2.3.28 1,474 9/19/2019
2.3.27 1,529 8/30/2019
2.3.26 1,473 8/20/2019
2.3.25 1,421 8/12/2019
2.3.22 1,404 7/31/2019
2.3.21 1,587 7/20/2019
2.3.20 1,520 6/22/2019
2.3.19 1,412 6/14/2019
2.3.18 1,451 6/13/2019
2.3.17 1,441 6/13/2019
2.3.15 1,504 6/8/2019
2.3.14 1,439 6/8/2019
2.3.13 1,468 5/30/2019
2.3.12 831 5/24/2019
2.3.11 818 5/24/2019
2.3.10 785 5/21/2019
2.3.9 791 5/9/2019
2.3.8 818 5/8/2019
2.3.7 868 4/30/2019
2.3.6 954 4/23/2019
2.3.5 867 4/19/2019
2.3.4 816 4/18/2019
2.3.3 832 4/17/2019
2.3.2 832 4/6/2019
2.3.1 1,032 12/15/2018
2.3.0 867 12/7/2018
2.2.6 958 11/25/2018
2.2.1 971 11/17/2018
2.2.0 965 11/16/2018
2.1.0 962 11/15/2018
2.0.1 953 11/6/2018
2.0.0 990 11/4/2018