Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What to do in this situation?
Message
 
 
To
All
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
What to do in this situation?
Environment versions
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01622794
Message ID:
01622794
Views:
53
Hi everybody,

We have a Web Application with a few layers to access and return data. In the repository we're normally doing queries and return an IEnumerable of the class or just one row of the class.

I have a need to return just 2 columns back. I don't want to define a new class. What do you normally do in this situation? E.g. how do you define a method to return a new object without creating a new class? Do you use just object in the signature?
If it's not broken, fix it until it is.


My Blog
Next
Reply
Map
View

Click here to load this message in the networking platform