using SqlSugar;
using System.Collections.Generic;
using System.Data;
using System.Linq;
namespace IStation.DAL
{
///
/// 业务清单
///
public partial class LogicTree : CorpDAL_TreeSorter
{
///
///
///
public override ConnectionConfig ConnectionConfig
{
get { return ConfigHelper.DefaultConnectionConfig; }
}
///
/// 通过 CatalogID 获取
///
public List GetByCatalogID(long CorpID, long CatalogID)
{
using (var db = new SqlSugarClient(ConnectionConfig))
{
return db.Queryable().Where(x => x.CorpID == CorpID && x.CatalogID == CatalogID).ToList();
}
}
}
}