SugarSql的基本使用方法(1)
using SqlSugar; using SqlSugar.Helper; using SqlSugar.Model; using System; using System.Collections.Generic; using System.Linq; namespace SugarSql { class Program { static void Main(string[] args) { SqlSugarClient db = new SqlHelper().CreateDB(); #region 新增 //int changeNum = db.Insertable(new User() { Name = "张三", Address = "NJ", Gender = "男", Birth = DateTime.Today }).ExecuteCommand(); //int addid = db.Insertable(new User() { Name = "李四", Address = "BJ", Gender = "女", Birth = DateTime.Today }).ExecuteReturnIdentity(); //List<User> users = new List<User>() //{ // new User() { Name = "Jerry",