YTKDBlibrary 1.0.0.6
See the version list below for details.
dotnet add package YTKDBlibrary --version 1.0.0.6
NuGet\Install-Package YTKDBlibrary -Version 1.0.0.6
<PackageReference Include="YTKDBlibrary" Version="1.0.0.6" />
paket add YTKDBlibrary --version 1.0.0.6
#r "nuget: YTKDBlibrary, 1.0.0.6"
// Install YTKDBlibrary as a Cake Addin #addin nuget:?package=YTKDBlibrary&version=1.0.0.6 // Install YTKDBlibrary as a Cake Tool #tool nuget:?package=YTKDBlibrary&version=1.0.0.6
删除,支持查询条件 List<Model.modelTableQuery>
查询,支持数组modelArrayQuery对象
查询,支持支持sql语句
插入,支持是否去重:如果存在可以不插入
初始化,支持modelDB一次性初始化模型 private modelDB DB = opeSqlDB.Init(modelTable, constring);
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
- MySql.Data (>= 8.0.20)
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 |
---|---|---|
1.0.1.23 | 1,307 | 3/14/2022 |
1.0.1.22 | 1,219 | 3/11/2022 |
1.0.1.15 | 1,215 | 2/23/2022 |
1.0.1.14 | 1,228 | 2/23/2022 |
1.0.1.13 | 1,188 | 2/23/2022 |
1.0.1.12 | 1,279 | 2/23/2022 |
1.0.1.11 | 1,201 | 2/22/2022 |
1.0.1.10 | 1,287 | 2/22/2022 |
1.0.1.9 | 1,226 | 2/22/2022 |
1.0.1.8 | 1,301 | 2/10/2022 |
1.0.1.7 | 1,195 | 1/13/2022 |
1.0.1.6 | 1,131 | 1/12/2022 |
1.0.1.5 | 1,133 | 1/12/2022 |
1.0.1.3 | 1,182 | 11/8/2021 |
1.0.1.2 | 1,174 | 7/21/2020 |
1.0.1.1 | 1,231 | 7/16/2020 |
1.0.0.8 | 1,197 | 7/9/2020 |
1.0.0.6 | 1,284 | 7/8/2020 |
1.0.0.5 | 1,251 | 7/7/2020 |
1.0.0.4 | 1,270 | 6/24/2020 |
1.0.0.3 | 1,402 | 6/23/2020 |
1.0.0.2 | 1,459 | 6/23/2020 |
1.0.0.1 | 1,527 | 6/23/2020 |
//查询——————————自定义模型
//创建查询条件
tb_test _seq = new tb_test() { pwd = "aaaaaa", name = "yinlik" };
//创建分页对象
modelPage _page = new modelPage() { isPage = true, pageNum = 1, rowCount = 2 };
//创建排序条件
List<modelOrder> _order = new List<modelOrder>();
_order.Add(new modelOrder() { orderColum = "usrid", orderType = YTKDBlibrary.Enum.enmOrderType.DESC });
modelSqlObj mdlCount = _sql.SelectCount(_seq);
int count = _exe.SelectCount(mdlCount);
List<tb_test> res = _exe.Select<tb_test>(_sql.Select(_seq, _page, _order));
ResultObj<SearchResultObj<tb_test>> result = new ResultObj<SearchResultObj<tb_test>>() { data = new SearchResultObj<tb_test>() { pageList = res, itemTotal = count } };
Console.ReadKey();
//查询:包含 查询类型————————返回自定义模型
List<modelTableQuery> _query = new List<modelTableQuery>();
_query.Add(new modelTableQuery() { columName = _m.tableColum[1].columName, queryType = YTKDBlibrary.Enum.enmQueryType.like, columValue = "a" });
//创建分页对象
modelPage _page = new modelPage() { isPage = true, pageNum = 1, rowCount = 2 };
//创建排序条件
List<modelOrder> _order = new List<modelOrder>();
_order.Add(new modelOrder() { orderColum = _m.tableColum[0].columName, orderType = YTKDBlibrary.Enum.enmOrderType.DESC });
//查询总数
int count = _exe.SelectCount(_sql.SelectCount(_query));
//查询结果集合:tb_test 是表结构 模型 需要自己定义
List<tb_test> res = _exe.Select<tb_test>(_sql.Select(_query, _page, _order));
Console.ReadKey();
//查询:sql语句返回——————————返回自定义模型
List<tb_test> rrr = _exe.Select<tb_test>("select * from tb_test;", null);
Console.ReadKey();
// 插入————————————自定义模型
tb_test _ins = new tb_test() { pwd = "测试啊啊啊啊啊3啊测试啊啊啊啊dd啊啊啊" };
modelSqlObj sqlIns = _sql.Insert(new List<object>() { _ins }, true);
int id = _exe.Insert(sqlIns);
Console.ReadKey();
//更新————————————自定义模型
tb_test _ups = new tb_test() { pwd = "aaaaaa", name = "yinlik" };
modelSqlObj sqlUpdate = _sql.Update(_ups, "usrid", 2);
_exe.Update(sqlUpdate);
Console.ReadKey();
//删除————————————自定义模型
modelDel mdlDel = new modelDel();
mdlDel.isLogic = true;
mdlDel.delColum = "country";
mdlDel.logicValue = 1;
mdlDel.query = new tb_test() { usrid = 2 };
modelSqlObj obj = _sql.Delete(mdlDel);
bool r = _exe.Delete(obj);
Console.ReadKey();