lixiaojun
2024-04-03 671ae51982c4e6671ed23efbffb7c3dd65e3f280
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
31
32
33
34
35
36
37
38
namespace Yw.DAL.PostgreSql
{
    /// <summary>
    /// 
    /// </summary>
    public partial class SysUnitValue : BaseDAL_Code_Sorter<Entity.SysUnitValue>, ISysUnitValue
    {
        /// <summary>
        /// 
        /// </summary>
        public override ConnectionConfig ConnectionConfig
        {
            get { return ConfigHelper.PostgreSqlConnectionConfig; }
 
        }
 
 
        /// <summary>
        /// 通过 TypeID 获取
        /// </summary>
        public List<Entity.SysUnitValue> GetByTypeID(long TypeID)
        {
            using (SqlSugarClient db = new(ConnectionConfig))
            {
                return db.Queryable<Entity.SysUnitValue>()
                    .Where(x => x.TypeID == TypeID)
                    .OrderBy(x => x.SortCode).ToList();
            }
        }
 
 
 
 
 
 
 
    }
}