public void ODBC_GetObject() { cfp102 db2object = null; db2object = queryBuilder.Get <cfp102>((x) => x.CF2 == "121"); Assert.IsNotNull(db2object); }
public void ODBC_ExecuteSqlGetObject() { StringBuilder builder = new StringBuilder(); SqlAndParameters sqlParameters = new SqlAndParameters(); List <Parameter> parameters = new List <Parameter>(); cfp102 db2object = null; builder.Append("Select * from c102 where CCH=? and CFB=1"); parameters.Add(new Parameter { ParameterKey = "?", ParameterValue = "121" }); sqlParameters.Sql = builder.ToString(); sqlParameters.Parameter = parameters; db2object = queryBuilder.ExecuteSqlGetObject <cfp102>(sqlParameters); Assert.IsNotNull(db2object); }