tijian_tieying/web/dccdc.DAL/mj_ygsqDal.cs
2025-02-20 12:14:39 +08:00

23 lines
530 B
C#

using Dapper;
using dccdc.Models;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace dccdc.DAL
{
public class mj_ygsqDal
{
public mj_ygsq GetByYGID(int ygid) {
using (IDbConnection conn = CommHelper.GetSqlConnection())
{
string sql = "select * from my_ygsq where ygid=" + ygid;
return conn.Query<mj_ygsq>(sql).FirstOrDefault();
}
}
}
}