static void Main(string[] args) { Nest(); Console.WriteLine("End.."); Console.ReadKey(); //MyUser user = new MyUser(); //var indexResponse = lowlevelC ...
分类:
Web程序 时间:
2020-01-17 15:03:58
阅读次数:
175
一、项目介绍 该项目内置单表linq操作,xml动态sql解析,词法分析,类型映射等功能。 SqlMapper,用来处理sql与数据库操作,它设计的目标是支持mysql,sqlserver,sqllite,pgsql等. TypeMapper用于完成将数据库的字段类型映射到C#类型,内部定义了类型转 ...
分类:
数据库 时间:
2020-01-17 13:52:40
阅读次数:
162
刚开始学Linq的时候,学会使用Select就觉得很兴奋。等某天看到SelectMany时,就觉得非常很神奇了,这什么东西,怎样使用法啊。有时候,学习光靠看,是不能理解的,最好是看,理解和实践操作。 本文借鉴了https://www.xuebuyuan.com/851846.html 的文章,补充部 ...
//Title: 个人健康管理分析报告 using System; using System.Collections.Generic; using System.Linq; using System.Text; using Word = Microsoft.Office.Interop.Word; ...
分类:
其他好文 时间:
2020-01-17 13:38:13
阅读次数:
95
CrudRepository中的方法(这个接口提供了基本增删改查方法) save(entity):添加一条数据 save(entities):添加多条数据entities为集合 findOne(id):根据id查询一条数据 exists(id):判断id是否存在 findAll():查询全部数据 d ...
分类:
其他好文 时间:
2020-01-17 13:13:24
阅读次数:
817
Model层Region.cs using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace WebApplication1.Models { public class R ...
分类:
移动开发 时间:
2020-01-15 23:10:36
阅读次数:
135
using System;using System.Collections.Generic;using System.IO;using System.Linq;using System.Security.Cryptography;using System.Text;using System.Thre ...
一、声明 曾经遇到一个这样的场景: GetEntities(a => a.OrderKindCodeId == 16 && a.IsDeleted, this.DefaultContext) protected IEnumerable<TEntity> GetEntities(Expression< ...
条件查询 XmlDocument xml = new XmlDocument(); string strUrl = System.Web.HttpContext.Current.Server.MapPath("/Content/ModelFolder/Translation.xml"); xml.L ...
分类:
其他好文 时间:
2020-01-15 12:09:26
阅读次数:
72
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading; using System.Threading.... ...
分类:
其他好文 时间:
2020-01-13 21:30:47
阅读次数:
69