public override T Retrieve <T>(BaseEntity entity) { var lstResult = Dao.ExecuteQueryProcedure(Mapper.GetRetriveStatement(entity)); var dic = new Dictionary <string, object>(); if (lstResult.Count > 0) { dic = lstResult[0]; var objs = Mapper.BuildObject(dic); return((T)Convert.ChangeType(objs, typeof(T))); } return(default(T)); }