public static List <EquipM> FindObjS(U_MySQL mySql, string[] judeColS, string[] operationS, string[] valueS) { //这个地方想想,可能不是只有一个dt DataTable dt = mySql.Select(tbName, new string[] { "*" }, judeColS, operationS, valueS).Tables[0]; return(FindObjS(dt)); }
//查 public static DataRow FindDr(U_MySQL mySql, GameObject go) { DataTable dt = mySql.Select(tbName, "goId", go.IdStr()); if (dt.Rows.Count > 0) { return(dt.Rows[0]); } else { return(null); } }
public static void DebugObj(U_MySQL mySql, GameObject go) { DataTable dt = mySql.Select(tbName, "goId", go.IdStr()); if (dt.Rows.Count > 0) { DebugEquip(U_MySQL.ToModel <EquipM>(dt.Rows[0])); } else { Debug.Log("无此条记录"); } }
public static EquipM FindObj(U_MySQL mySql, string[] judeColS, string[] operationS, string[] valueS) { DataRow dr = mySql.Select(tbName, new string[] { "*" }, judeColS, operationS, valueS).Tables[0].Rows[0]; if (dr != null) { return(U_MySQL.ToModel <EquipM>(dr)); } else { return(null); } }
public static DataTable FindDt(U_MySQL mySql, GameObject go) { return(mySql.Select(tbName, "goId", go.IdStr())); }