public static int getIdByName(int businessclass, string businessname) { Businesstype bt = BusinesstypeDao.FindFirst(new EqExpression("Businessclass", businessclass), new EqExpression("Businessname", businessname), new EqExpression("Isdeleted", (int)EnmIsdeleted.使用中)); return(bt.Id); }
public static Businesstype getById(int id) { Businesstype bs = BusinesstypeDao.FindFirst(new EqExpression("Id", id), new EqExpression("Isdeleted", (int)EnmIsdeleted.使用中)); return(bs); }