lixiaojun
2024-12-19 1dd158434a41627a6684cd630b2696fb83b1e3d6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using Yw.DAL.SQLite;
 
namespace HStation.DAL.SQLite
{
    /// <summary>
    ///
    /// </summary>
    public partial class AssetsFlowmeterMain : BaseDAL_Paras_Flags_TagName_Sorter<Entity.AssetsFlowmeterMain>, IAssetsFlowmeterMain
    {
        /// <summary>
        ///
        /// </summary>
        public override ConnectionConfig ConnectionConfig
        {
            get { return Assets.ConfigHelper.SQLiteConnectionConfig; }
        }
 
        /// <summary>
        /// 
        /// </summary>
        public List<Entity.AssetsFlowmeterMain> GetBySeriesID(long SeriesID)
        {
            using (var db = new SqlSugarClient(ConnectionConfig))
            {
                return db.Queryable<Entity.AssetsFlowmeterMain>()
                    .Where(x => x.SeriesID == SeriesID).ToList();
            }
        }
    }
}