using SqlSugar;
|
using System;
|
using System.Collections.Generic;
|
using System.Data;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
|
namespace IStation.DAL
|
{
|
/// <summary>
|
/// InspectRecordFile
|
/// </summary>
|
public partial class InspectRecordFile : BaseDAL<Entity.InspectRecordFile>
|
{
|
/// <summary>
|
///
|
/// </summary>
|
public override ConnectionConfig ConnectionConfig
|
{
|
get
|
{
|
return ConfigHelper.RecordConnectionConfig;
|
}
|
}
|
|
/// <summary>
|
///
|
///
|
/// </summary>
|
/// <param name="RecordID"></param>
|
/// <returns></returns>
|
public List<Entity.InspectRecordFile> GetByRecordID( long RecordID)
|
{
|
using (var db = new SqlSugarClient(ConnectionConfig))
|
{
|
return db.Queryable<Entity.InspectRecordFile>()
|
.Where(x => x.RecordID == RecordID) .ToList();
|
}
|
}
|
|
|
|
}
|
}
|