using SqlSugar;
using IStation.Entity;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
namespace IStation.DAL
{
///
/// Bimface文件映射
///
public partial class BimfaceFileMapping : CorpDAL_Sorter
{
///
///
///
public override ConnectionConfig ConnectionConfig
{
get { return ConfigHelper.DefaultConnectionConfig; }
}
///
/// 更新设置
///
public bool UpdateSettings(long CorpID, long ID, string Settings)
{
using (SqlSugarClient db = new SqlSugarClient(ConnectionConfig))
{
return db.Updateable()
.SetColumns(x => x.Settings == Settings)
.Where(x => x.CorpID == CorpID && x.ID == ID)
.ExecuteCommand() > 0;
}
}
///
/// 更新 BimfaceFileID
///
public bool UpdateBimfaceFileID(long CorpID, long ID, long BimfaceFileID)
{
using (SqlSugarClient db = new SqlSugarClient(ConnectionConfig))
{
return db.Updateable()
.SetColumns(x => x.BimfaceFileID == BimfaceFileID)
.Where(x => x.CorpID == CorpID && x.ID == ID)
.ExecuteCommand() > 0;
}
}
}
}