/// <summary> /// 取实体 /// </summary> public AdPositionModel GetModel(SqlTransaction trans, int AdPositionId) { StringBuilder SqlQuery = new StringBuilder(); SqlQuery.Append(" and AdPositionId=@AdPositionId"); List <SqlParameter> listParams = new List <SqlParameter>(); listParams.Add(new SqlParameter("@AdPositionId", AdPositionId)); return(adpDAL.GetModel(trans, SqlQuery, listParams)); }
/// <summary> /// 得到一个对象实体 /// </summary> public BWJS.Model.AdPosition GetModel(int AdPositionID) { return(dal.GetModel(AdPositionID)); }