Feature Request - Custom Entity Interfaces

Posts   
 
    
Marcus avatar
Marcus
User
Posts: 747
Joined: 23-Apr-2004
# Posted on: 10-Dec-2004 11:07:03   

I know, I know!!!! 2 feature request in the same hour!!! smile

But this one is really more of a discussion point rather than a request wink

I would like to be able to design some custom entity interfaces within the Desginer. Let me give you an example:

I have several tables that have some common fields:

CreatedBy
CreatedDate
IsActive

Now before the normalisation police arrest me, I don't want to put these fields in their own table for practicality reasons (performance etc)... So I end up with generated Enitities each of which have these common properties.

I would like to be able to create a custom interface in the designer and tag tables which implement this interface. The following interface would be generate and chosen Entities would implement it:

        public interface IMyCommonFields
        {
            int CreatedByID { get; set; }
            DateTime CreatedDate { get; set; }
            bool IsActive { get; set; }
        }

This would allow me to pass selected Entities around and access their common fields more elegantly...

What do you think?

Marcus

Mountain
User
Posts: 21
Joined: 01-Apr-2005
# Posted on: 06-Apr-2005 16:32:24   

I would also like to have a feature like this.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 06-Apr-2005 16:53:18   

I'll add it to the todo list to be considered as a future enhancement.

Frans Bouma | Lead developer LLBLGen Pro
Rogelio
User
Posts: 221
Joined: 29-Mar-2005
# Posted on: 07-Apr-2005 13:00:24   

Hi,

I will love this feature.

Answer
User
Posts: 363
Joined: 28-Jun-2004
# Posted on: 21-Apr-2005 06:39:49   

i 3rd taht wink

Marcus avatar
Marcus
User
Posts: 747
Joined: 23-Apr-2004
# Posted on: 21-Apr-2005 09:46:04   

smile Oh dear Frans... now your gonna have to implement it!!! wink

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 21-Apr-2005 12:34:08   

Well, 'somewhere in the future'. At the moment I'm near madness over wdsl.exe which produces garbage because it thinks any type other than dataset must still be a dataset and I can't produce a schema which tells the darn wdsl crappy to take a hike and use the type specified...

Frans Bouma | Lead developer LLBLGen Pro