摘要:
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Reflection; u 阅读全文
posted @ 2022-04-11 11:28
China Soft
阅读(336)评论(0)推荐(0)
摘要:
SQL 语句有很多函数如len(),now()等等。如何来生成这些函数。最近研究也写办法共大家参考。 一.首先建立一个建一个扩展类,控制只能允许这些函数出现,如果出现其他函数就直接报异常。 1 public static class SQLMethods 2 { 3 public static bo 阅读全文
posted @ 2022-04-11 11:26
China Soft
阅读(159)评论(0)推荐(0)
摘要:
sql有有四中基本语句,分别是增删改查,在建立model后如何生成这四中sql语句,降低开发时间。 我们先模拟出一张学生表: public class Student { public int id { get; set; } public string name { get; set; } pub 阅读全文
posted @ 2022-04-11 10:33
China Soft
阅读(72)评论(0)推荐(0)