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();
|
}
|
}
|
|
|
|
|
|
}
|
}
|