随笔分类 - asp.net core
摘要:第一步:引入NPOI程序包 第二步:准备好要插入数据的word模板 第三步:读取数据写入word中,注意对象名和word中的名一致,而且word中的名不能重复,否则写入不上,代码不用考虑word排版样式的问题 1 using Microsoft.AspNetCore.Hosting; 2 using
阅读全文
摘要:public IQueryable<T> GetEntitys(Expression<Func<T,bool>> lambdaWhere) { //context.UserInfoes.Where(lambdaWhere); return context.Set<T>().Where(lambdaW
阅读全文