using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using dccdc.Models; using System.Data; using Dapper; namespace dccdc.DAL { public class sqwzbxmxDal { public List GetListByParent(string id) { //throw new NotImplementedException(); using (IDbConnection conn = CommHelper.GetSqlConnection()) { string sql = "select * from sqwzbxmx where 1=1 and sqdid=@parentid"; return conn.Query(sql, new { parentid = id }).ToList(); } } } }