namespace Yw.DAL.PostgreSql { /// /// Dma分区 /// public partial class DmaArea : BaseDAL_Paras_Flags_TagName_Sorter, IDmaArea { /// /// /// public override ConnectionConfig ConnectionConfig { get { return ConfigHelper.PostgreSqlConnectionConfig; } } /// /// 通过 BelongType 和 BelongID 获取 /// public List GetByBelongTypeAndBelongID(string BelongType, long BelongID) { using (var db = new SqlSugarClient(ConnectionConfig)) { return db.Queryable() .Where(x => x.BelongType == BelongType && x.BelongID == BelongID) .OrderBy(x => x.SortCode).ToList(); } } } }