lixiaojun
2024-03-26 38b6c0f70c646d247e50083c4a09abce055e363a
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
namespace Yw.DAL.PostgreSql
{
    /// <summary>
    /// Dma分区
    /// </summary>
    public partial class DmaArea : BaseTraceDAL_Code_Paras_Flags_TagName_Sorter<Entity.DmaArea>, IDmaArea
    {
        /// <summary>
        /// 
        /// </summary>
        public override ConnectionConfig ConnectionConfig
        {
            get { return ConfigHelper.PostgreSqlConnectionConfig; }
 
        }
 
        /// <summary>
        /// 通过 BelongType 和 BelongID 获取
        /// </summary>
        public List<Entity.DmaArea> GetByBelongTypeAndBelongID(string BelongType, long BelongID)
        {
            using (var db = new SqlSugarClient(ConnectionConfig))
            {
                return db.Queryable<Entity.DmaArea>()
                    .Where(x => x.BelongType == BelongType && x.BelongID == BelongID)
                    .OrderBy(x => x.SortCode).ToList();
            }
        }
 
 
 
 
 
    }
}