using Cksoft.Data; using DllEapEntity.Dtos; using System; using System.Collections.Generic; using System.Text; namespace DllEapDal { public class StandardStatusDal { private IDatabase CurrDb; public StandardStatusDal(IDatabase db) { CurrDb = db; } public IEnumerable> GetAll(string filter = "") { var sql = $"select StatusVal as value,FName as label from standardstatus " + $"where 1=1 {filter}"; return CurrDb.FindList>(sql); } } }