直接操作数据


   /// <summary>
        /// 日志
        /// </summary>
        private readonly ILogger<DefaultController> _logger;
        private IDbContext _db;

        /// <summary>
        /// 注入服务 
        /// </summary>
        /// <param name="logger"></param>
        /// <param name="config"></param>
        public DefaultController(IDbContext db, ILogger<DefaultController> logger)
        {
            _db = db;
            _logger = logger;
        }

var a = _db.Query<Dictionary<string, object>>(
new PFGlobalParameter { OwnerId = "bt" },
"ConnLog", "select * from bo_qr_code", new { });
文档更新时间: 2021-10-16 10:31   作者:admin