linq or shared class in cobra?
Posted: Mon Oct 05, 2009 9:07 am
Hello,
I started cobra some months ago for work, and learned it bit by bits when I needed something new.
The major part in where we use it is for interfaces and active record mapping. (in a Castle project if this info can be usefull to understand)
The problem is that I now need a function in a cobra class that would send back all items in a database table that have a specific value (no relation between tables possible).
At first, I thought about a Linq request, but it seems that it is not possible to do so.
Then I thought about making the class a partial class and do the other part in c#, but there it seems to be some problems with the people that I work for (I'm just in charge of a little part of the project).
so I wanted to know if you knew about a way to find it, a little like Linq in term of returns if possible.
I'm sorry if what I ask seems not clear or too hard.
In case I need to explain more, please ask
I will use this opportunity to thank the ones in charge of the Cobra project, as it seems quite good from what I saw and saved me some hours until now.
I started cobra some months ago for work, and learned it bit by bits when I needed something new.
The major part in where we use it is for interfaces and active record mapping. (in a Castle project if this info can be usefull to understand)
The problem is that I now need a function in a cobra class that would send back all items in a database table that have a specific value (no relation between tables possible).
At first, I thought about a Linq request, but it seems that it is not possible to do so.
Then I thought about making the class a partial class and do the other part in c#, but there it seems to be some problems with the people that I work for (I'm just in charge of a little part of the project).
so I wanted to know if you knew about a way to find it, a little like Linq in term of returns if possible.
I'm sorry if what I ask seems not clear or too hard.
In case I need to explain more, please ask
I will use this opportunity to thank the ones in charge of the Cobra project, as it seems quite good from what I saw and saved me some hours until now.