public override List <T> Select <T>(Expression <Func <T, bool> > express) { using (OracleConnection oct = new OracleConnection(Constring)) { oct.Open(); SelectOql cs = new SelectOql(); using (IDataReader idr = OracleSql.GetDtReader(cs.CreateSql <T>(express), oct)) { return(OracleResult.ValueToList <T>(idr)); } } }
/// <summary> /// 无参 /// </summary> /// <typeparam name="T"></typeparam> /// <returns></returns> public override List <T> Select <T>() { using (OracleConnection oct = new OracleConnection(Constring)) { oct.Open(); ics = new SelectOql(); using (IDataReader idr = OracleSql.GetDtReader(ics.CreateSql <T>(), oct)) { return(OracleResult.ValueToList <T>(idr)); } } }