Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can't figure out why?
Message
From
14/09/2006 11:33:24
 
 
To
14/09/2006 10:49:10
John Baird
Coatesville, Pennsylvania, United States
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01153598
Message ID:
01153741
Views:
22
>What an ugly construct. And almost completely unreadable. I'd hate to maintain that code base. lol

So of these two you consider the second as being more readable and maintainable ?:
    this.oOrder.GetOrdersByCustomerID(@"Select Orders.OrderID, 
        Orders.OrderDate, Orders.RequiredDate,  
        Orders.ShippedDate, Orders.ShipName, 
        Customers.ContactName From Orders, Customers
        Where Orders.CustomerID = Customers.CustomerID And
        Orders.CustomerID Like '%"+this.pckCustomer.Text+"%'", 1 );
or
    this.oOrder.GetOrdersByCustomerID("Select Orders.OrderID, "
        + "Orders.OrderDate, Orders.RequiredDate, "  
        + "Orders.ShippedDate, Orders.ShipName, " 
        + "Customers.ContactName From Orders, Customers "
        + "Where Orders.CustomerID = Customers.CustomerID And "
        + "Orders.CustomerID Like '%"+this.pckCustomer.Text+"%'", 1 );
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform