Collections of objects

F

Fresno Bob

I have an object with properties and methods. I am using linq but I would
like my methods to return collections of objects. Are there any issues with
creating an instance of a business object and then having a method which
returns a collection of the same business object by using linq to project
into the type. E.g.

I have a customer object which has a method GetAllCustomers(). The
GetAllCustomers() method returns a list of customers.

Does the collection become bigger if the objects within it have many methods
or does the collection just hold properties. Should I have a separate class
to return collections bearing in mind the customer class will have update
and insert methods etc anyway.

Regards, Chris.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,067
Latest member
HunterTere

Latest Threads

Top