public static List <BaseEntity> GetEntityByCommandText(string entityName, string commandText) { try { var getListEntityDao = new GetListEntityDao(); return(getListEntityDao.SelectTextQuerry(commandText, entityName)); } catch (Exception ex) { LogTo.Error(ex.ToString()); throw new Exception(string.Format("GetEntityByCommandText {0}::{1}", entityName, commandText)); } }