public static bool add(YF.Mode.Upnumber info) { bool result = false; string strsql = "insert into _Upnum (name,room,word) values ('" + info.Name + "','" + info.Room + "','" + info.Word + "')"; int i = YF.MsSqlHelper.YFMsSqlHelper.ExecuteSql(strsql);//执行插入语句,失败返回0 if (i > 0) { result = true; } return(result); }
public static bool add(YF.Mode.Upnumber info)//添加 { return(YF.DAL.Upnumber.add(info)); }