/// <summary> /// 查询全部数据 /// </summary> /// <returns>查询结果</returns> public IList <Employee> SelectAll() { string SQL = SQLBuilder.BuildSelectAllSQL(TableName); var employees = Connection.QuerySql <Employee>(SQL); return(employees); }
/// <summary> /// 查询全部数据 /// </summary> /// <returns>查询结果</returns> public IList <VisitRecord> SelectAll() { string SQL = SQLBuilder.BuildSelectAllSQL(TableName); var records = Connection.QuerySql <VisitRecord>(SQL, new { is_deleted = false }); return(records); }
/// <summary> /// 查询全部未删除的数据 /// </summary> /// <returns>查询结果</returns> public IList <Order> SelectAll() { string SQL = SQLBuilder.BuildSelectAllSQL(TableName); var orders = Connection.QuerySql <Order>(SQL); return(orders); }