Beispiel #1
0
        /// <summary>
        /// 根据主键获取一条数据(实体类需要设置主键 在主键属性上加 Key特性)
        /// </summary>
        /// <typeparam name="TKey"></typeparam>
        /// <param name="id"></param>
        /// <returns></returns>
        public async Task <T> FindAsync <TKey>(TKey id)
        {
            var rst = await QuerySet.GetAsync(id);

            DoSetSql();
            return(rst);
        }