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.
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.