Could someone please review this and let me know why it is not returning anything?
What I am trying to do is check to see if there is any of the part reserved and unreserve it if it is. I am trying to build a string for a where clause, but when I put the variable in a message it is just blank. Many thanks in advance!!
var myDS = ds.OrderRel.Where(or=> or.RowMod == "A").FirstOrDefault();
if (myDS != null)
{
var myRel = ds.OrderRel.Where(r=> r.OrderNum == myDS.OrderNum &&
r.OrderLine == myDS.OrderLine &&
r.OrderRelNum == 1).FirstOrDefault();
if (myRel != null)
{
System.Text.StringBuilder sb = new System.Text.StringBuilder("OrderRel.PartNum >= \'");
sb.Append(myRel.PartNum.ToString());
sb.Append("\' and OrderRel.PartNum <= \'");
sb.Append(myRel.PartNum.ToString());
sb.Append("\'");
myWhere = sb.ToString();
//myWhere = "OrderRel.PartNum >= \'" + myRel.PartNum.ToString() + "\' and OrderRel.PartNum <= \'" + myRel.PartNum.ToString() + "\'";
}}
I actually was off of here, but I got back on after being frustrated with vrbo and expedia.
Can’t book anything, and I need to show off my beautiful pasty bod on the beach.