示例#1
0
 public async static Task <IEnumerable <DeliveryInfoModel> > GetList(string company_type, string invoice_no)
 {
     return(await MySqlDapperHelper.RunGetQueryFromXmlAsync <DeliveryInfoModel>("/Sql/Lab.xml", "GetDeliveryList", new {
         company_type = company_type,
         invoice_no = invoice_no,
     }));
 }
示例#2
0
        public static async Task <BoardModel> GetAsync(string board_type, int seq)
        {
            var model = await MySqlDapperHelper.RunGetQueryFromXmlAsync <BoardModel>("Sql/Board.xml", "GetBoard", new
            {
                board_type = board_type,
                seq        = seq
            });

            return(model.FirstOrDefault());
        }