摘要: 比如:string str="6>5"; 要的效果是:bool result=6>5 方案1: 命名空间:System.Data; DataTable dt = new DataTable(); bool result= (bool)dt.Compute("","");dt.Compute(str, 阅读全文
posted @ 2020-07-25 17:11 摩诘 阅读(2184) 评论(0) 推荐(0) 编辑
摘要: 1 public class EnumHelper 2 { 3 #region 获取枚举 4 public static List<EnumValue> GetEnumList(Type enumType) 5 { 6 var list = new List<EnumValue>(); 7 stri 阅读全文
posted @ 2020-07-25 17:05 摩诘 阅读(609) 评论(0) 推荐(0) 编辑
摘要: select t.TABLE_NAME from information_schema.columns t where t.COLUMN_NAME='列名'; 阅读全文
posted @ 2020-07-25 17:03 摩诘 阅读(203) 评论(0) 推荐(0) 编辑