From 4695a1e617430e72f06e1f6cea55cda3b65a77a9 Mon Sep 17 00:00:00 2001 From: Tjiny <Tjinyu23@163.com> Date: 星期二, 01 七月 2025 15:53:24 +0800 Subject: [PATCH] 2025-07-01日上海日东充电任务定时提交 --- HH.WCS.Mobox3.RiDong/generalMethod/AdoSqlMethod.cs | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/HH.WCS.Mobox3.RiDong/generalMethod/AdoSqlMethod.cs b/HH.WCS.Mobox3.RiDong/generalMethod/AdoSqlMethod.cs index 686602b..876e9e2 100644 --- a/HH.WCS.Mobox3.RiDong/generalMethod/AdoSqlMethod.cs +++ b/HH.WCS.Mobox3.RiDong/generalMethod/AdoSqlMethod.cs @@ -12,6 +12,19 @@ /// </summary> public static class AdoSqlMethod<T> where T : class, new() { + + /// <summary> + /// 鏌ヨ涓�潯鏁版嵁 + /// </summary> + /// <returns></returns> + public static T QueryFirst() + { + var db = new SqlHelper<object>().GetInstance(); + + // 杩斿洖鏁版嵁 + return db.Queryable<T>().First(); + } + /// <summary> /// 鏍规嵁鏉′欢鏌ヨ涓�潯鏁版嵁 /// </summary> -- Gitblit v1.9.1