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 BkyyrqDal { public int checkDate(string date) { try { string sql = string.Format("select count(*) from dccdc.dbo.bkyyrq where rq='{0}'",date); using (IDbConnection conn = CommHelper.GetSqlConnection()) { return conn.ExecuteScalar(sql); } } catch (Exception ex) { return 0; } } } }