摘要:
在我们日常工作中有没有遇到这样一个问题,就是字符串和字段/属性同名,希望通过字符串自己给字段/属性名字替换。要实现此功能可以用反射。 上代码: using System; using System.Collections.Generic; using System.Linq; using Syste 阅读全文
摘要:
一、效果展示 二、代码 <!DOCTYPE html> <html lang="zh-cn"> <head> <meta charset="UTF-8"> <meta name="renderer" content="webkit"> <meta name="viewport" content="w 阅读全文
摘要:
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CSharpStudy { class Prog 阅读全文
摘要:
一、什么是Dapper Dapper是一款轻量级ORM工具(Github)。如果你在小的项目中,使用Entity Framework、NHibernate 来处理大数据访问及关系映射,未免有点杀鸡用牛刀。你又觉得ORM省时省力,这时Dapper 将是你不二的选择。 二、Dapper的优点 轻量。只有 阅读全文
摘要:
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net.Http; using System.Text; using System.Threading.T 阅读全文