/// <summary> /// get current worker /// </summary> /// <param name="worker_no">worker_no</param> /// <returns>current worker entity</returns> public Me_worker GetCurrentWorker(string worker_no) { IMainDal dal = new MainDal(); Dictionary <string, object> pms = new Dictionary <string, object>(); pms.Add("worker_no", worker_no); Me_worker tmp = dal.ReadModelByPms <Me_worker>(pms); return(tmp); }
/// <summary> /// read single model /// </summary> /// <typeparam name="T">model type</typeparam> /// <param name="pms">query parameter</param> /// <returns>model</returns> public virtual T ReadModelByPms <T>(Dictionary <string, object> pms) where T : class { IMainDal dal = new MainDal(); return(dal.ReadModelByPms <T>(pms)); }