/// <summary> /// 修改 /// </summary> /// <param name="user"></param> /// <returns></returns> public static int UpdateUser(User user) { // string id = user.UserName; // user.GetDictionary().Remove("UserName"); return(SqliteHelper.ExecuteUpdate("UserInfo", "UserName='******'", GetProperties(user))); }
public static int AddNewTrain(Train train) { return(SqliteHelper.ExecuteInsert("TrainRecord", GetProperties(train))); }
/// <summary> /// 增加 /// </summary> /// <param name="user"></param> /// <returns></returns> public static int AddNewUser(User user) { return(SqliteHelper.ExecuteInsert("UserInfo", GetProperties(user))); }