DBCount of another unrelated entity as a custom field for an entity

Posts   
 
    
fredfern
User
Posts: 6
Joined: 07-Jan-2009
# Posted on: 08-Jan-2009 19:45:56   

I am using the LLBLGen Pro Ver 2.6 Final.

Need to know if it possible to add a custom field for an entity that will store the count of records (DBCount) for another entity that is no way related to the entity.

For Example, I have entity A and entity B both mapped to database tables but do not have any relationships defined between them. I want to add a field to entity A that will give me the count of the entity B collection. i.e. number of records in the table mapped to entity B.

How can I implement this?

Thanks.

MTrinder
User
Posts: 1461
Joined: 08-Oct-2008
# Posted on: 08-Jan-2009 21:32:33   

You can add your own code to the generated classes to do pretty much whatever you need.

Matt

fredfern
User
Posts: 6
Joined: 07-Jan-2009
# Posted on: 08-Jan-2009 21:53:14   

MTrinder wrote:

You can add your own code to the generated classes to do pretty much whatever you need.

Matt

Let me read the documentation and try it... Thank you.

fredfern
User
Posts: 6
Joined: 07-Jan-2009
# Posted on: 08-Jan-2009 21:53:22   

MTrinder wrote:

You can add your own code to the generated classes to do pretty much whatever you need.

Matt

Let me read the documentation and try it. Thank you.

fredfern
User
Posts: 6
Joined: 07-Jan-2009
# Posted on: 08-Jan-2009 21:53:33   

MTrinder wrote:

You can add your own code to the generated classes to do pretty much whatever you need.

Matt

Let me read the documentation and try it.

fredfern
User
Posts: 6
Joined: 07-Jan-2009
# Posted on: 08-Jan-2009 21:53:43   

MTrinder wrote:

You can add your own code to the generated classes to do pretty much whatever you need.

Matt

Let me read the documentation and try it.

MTrinder
User
Posts: 1461
Joined: 08-Oct-2008
# Posted on: 08-Jan-2009 22:01:57   

You should only need to read it once simple_smile

fredfern
User
Posts: 6
Joined: 07-Jan-2009
# Posted on: 08-Jan-2009 22:10:45   

Yes, hope to read it just once simple_smile

When trying to reply, it gave me an error, so try again and again multiple times. When I logged out and logged in again, saw all the replies which I thought never got posted.