Basic.MvcLibrary 6.0.5814

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

basic ORM Framework & Designer

basic ORM 于2012 年发布、2023 年正式开源,该组件已在数百个成熟项目中应用。

经过数十个版本的更新迭代发布全新v6.0版本,支持动态条件查询(Lambda)

数据库持久化 ORM 开发框架,支持多种数据库(MSSQL,MYSQL,ORACLE,DB2,PostgreSQL等)。

支持Linq表达式动态查询数据。支持快速分页

简单的事务处理,自动化事务提交,回滚

设计器文件目录

  • 设计器文件(*.dpdl)
    • 数据持久类代码(xxxAccess.cs)
    • 数据持久类代码(xxxAccess.designer.cs)
    • 业务逻辑类代码(xxxContext.cs)
    • 业务逻辑类代码(xxxContext.designer.cs)

添加持久类截图

NuGet packages

包名称 包说明 状态
Standard.EntityLayer 实体模型包 NuGet version
Standard.DataAccess 基础数据库持久包 NuGet version
Standard.SqlClientAccess SQL Server 数据库持久类支持包 NuGet version
Standard.MySqlAccess MySql 数据库持久类支持包 NuGet version
Standard.OracleAccess Oracle 数据库持久类支持包 NuGet version
Standard.PostgreAccess PostgreSQL 数据库持久类支持包 NuGet version

不使用分布式事务

using(xxxAccess access = new xxxAccess(connectionstring))
{
   access.Create(entity); or await access.CreateAsync(entity);
}

//使用 Lambda 表达式查询数据
using(xxxAccess access = new xxxAccess(connectionstring))
{
    var queries = access.GetEntities<XXX>(0,0);
    queries.Where(m => m.Enabled == true).Where(m => m.Key >= 1);
    return queries.ToPaginationAsync();
}

使用分布式事务(xxxContext.cs)

using(xxxAccess access = new xxxAccess(connectionstring, true))
{   
    access.Create(entity); or await access.CreateAsync(entity);
    access.SetComplate();
}

using(xxxAccess access = new xxxAccess(connectionstring, TimeSpan.FromSeconds(60)))
{   
    access.Create(entity); or await access.CreateAsync(entity);
    access.SetComplate();
}

使用日志

在 Program 文件中设置应用停止时缓冲区没有写入的日志信息

app.Lifetime.ApplicationStopping.Register(() =>
{
    LoggerWriterFactory.FlushAsync();
});
//使用 Lambda 表达式查询数据
using(xxxAccess access = new xxxAccess(connectionstring))
{
    var queries = access.GetEntities<XXX>(0,0);
    queries.Where(m => m.Enabled == true).Where(m => m.Key >= 1);
    return queries.ToPaginationAsync();
}
Product Compatible and additional computed target framework versions.
.NET Framework net472 is compatible.  net48 was computed.  net481 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
6.0.5823 323 6/14/2025
6.0.5814 276 4/30/2025
6.0.5811 292 4/2/2025
6.0.5810 286 4/1/2025
6.0.5809 284 4/1/2025
6.0.5806 249 2/27/2025
6.0.5804 236 12/27/2024
6.0.5803 230 12/2/2024
6.0.5496 241 11/4/2024
6.0.5495 255 10/29/2024
6.0.5493 247 10/17/2024
6.0.5492 228 10/12/2024
6.0.5491 260 8/14/2024
6.0.5490 277 5/14/2024
6.0.5486 269 5/10/2024
6.0.5485 266 4/4/2024
6.0.5483 505 12/4/2023
6.0.5482 534 11/30/2023
6.0.5480 504 11/27/2023
6.0.5479 495 11/24/2023
6.0.5476 516 11/18/2023
6.0.5475 474 11/13/2023
6.0.5473 488 11/4/2023
6.0.5469 503 10/27/2023
6.0.5467 532 10/25/2023
6.0.5457 607 9/20/2023
6.0.5455 588 9/7/2023
6.0.5454 595 8/31/2023
6.0.5453 729 7/7/2023
6.0.5452 785 6/2/2023
6.0.5451 789 5/16/2023
6.0.5450 846 4/3/2023
6.0.5448 834 3/22/2023
6.0.5446 889 3/14/2023
6.0.5445 828 3/14/2023
6.0.5444 973 3/8/2023
6.0.5443 920 2/26/2023
6.0.5441 933 2/18/2023
6.0.5440 903 1/9/2023
6.0.5438 961 1/4/2023
6.0.5435 989 1/3/2023
6.0.5433 979 12/30/2022
6.0.5429 1,048 12/30/2022
6.0.5422 963 12/28/2022
6.0.5421 968 12/9/2022
6.0.5416 1,067 10/29/2022
6.0.5413 1,140 10/16/2022
6.0.5409 1,136 10/9/2022
4.7.13672 1,134 8/4/2022
4.7.13668 1,081 6/27/2022
4.7.13664 1,228 5/16/2022
4.7.13659 1,230 4/25/2022
4.7.13652 1,189 3/21/2022
4.7.13651 1,224 3/5/2022
4.7.13649 1,284 2/24/2022
4.7.13646 1,226 2/16/2022
4.7.13642 1,231 1/15/2022
4.7.13638 1,027 12/23/2021
4.7.13628 1,113 11/30/2021
4.7.13624 2,164 11/26/2021
4.7.13622 3,521 11/25/2021
4.7.13611 1,166 10/22/2021
4.7.13610 1,262 10/17/2021
4.7.13605 1,162 10/11/2021
4.7.13590 1,154 9/21/2021
4.7.13578 1,294 8/7/2021
4.7.13577 1,175 8/3/2021
4.7.13576 1,249 8/2/2021
4.7.13568 1,140 5/10/2021
4.7.13564 1,100 4/22/2021
4.7.13561 1,293 3/7/2021
4.7.13557 1,265 3/4/2021
4.7.13556 1,344 12/28/2020
4.7.13555 1,326 12/28/2020
4.7.13552 1,420 12/21/2020
4.7.13550 1,436 12/14/2020
4.7.13545 1,466 11/7/2020
4.7.13544 1,385 10/24/2020
4.7.13537 1,391 10/16/2020
4.7.13524 1,551 12/23/2019
4.7.13513 1,534 10/21/2019
4.7.13503 1,494 8/15/2019
4.7.13499 1,623 6/28/2019
4.7.13490 1,570 5/4/2019
4.7.13489 1,491 4/29/2019
4.7.13486 1,577 4/15/2019
4.7.13485 1,572 4/11/2019
4.7.13450 1,572 7/18/2019
4.5.13480 1,628 3/7/2019
4.5.13479 1,539 2/23/2019
4.5.13451 2,292 5/28/2018
4.5.13446 2,289 5/9/2018
4.5.13427 2,122 12/1/2017
4.5.13424 2,068 11/19/2017
4.0.13419 2,048 11/15/2017
4.0.13418 2,056 11/8/2017
4.0.13416 2,113 11/7/2017
4.0.13405 2,072 9/16/2017
4.0.2016.1339 2,161 7/3/2017
4.0.2016.1338 2,081 6/29/2017
4.0.2016.1337 2,123 6/26/2017
4.0.2016.1335 2,157 6/22/2017
4.0.2016.1332 2,116 6/21/2017
4.0.2016.1331 2,130 6/20/2017
4.0.2016.1329 2,171 5/24/2017
4.0.2016.1328 2,150 4/18/2017
4.0.2016.1309 2,190 10/12/2016
4.0.2016.1307 2,112 9/29/2016
4.0.2016.1306 2,477 9/21/2016
4.0.2016.1305 2,183 9/5/2016
4.0.2016.1304 2,142 9/2/2016
4.0.2016.1300 2,214 8/23/2016
4.0.2016.1279 2,222 7/20/2016
4.0.2016.1273 2,187 7/4/2016
4.0.2016.1272 2,266 6/15/2016
4.0.2016.1265 2,175 5/5/2016
4.0.2016.1264 2,178 5/3/2016
4.0.2016.1251 2,224 4/19/2016
4.0.2016.1246 2,278 4/9/2016