using Yw.DAL.SQLite;
|
|
namespace HStation.DAL.SQLite
|
{
|
/// <summary>
|
///
|
/// </summary>
|
public partial class XhsScheme : BaseDAL_Paras_Flags_Sorter_UseStatus<Entity.XhsScheme>, IXhsScheme
|
{
|
/// <summary>
|
///
|
/// </summary>
|
public override ConnectionConfig ConnectionConfig
|
{
|
get { return Xhs.ConfigHelper.SQLiteConnectionConfig; }
|
}
|
|
|
/// <summary>
|
/// 通过 SiteID 获取
|
///
|
/// </summary>
|
public List<Entity.XhsScheme> GetBySiteID(long SiteID)
|
{
|
using (var db = new SqlSugarClient(ConnectionConfig))
|
{
|
return db.Queryable<Entity.XhsScheme>()
|
.Where(x => x.SiteID == SiteID).ToList();
|
}
|
}
|
|
/// <summary>
|
/// 通过 SiteID 删除
|
/// </summary>
|
public bool DeleteBySiteID(long SiteID)
|
{
|
using (var db = new SqlSugarClient(ConnectionConfig))
|
{
|
return db.Deleteable<Entity.XhsScheme>()
|
.Where(x => x.SiteID == SiteID).ExecuteCommandHasChange();
|
}
|
}
|
|
}
|
}
|