Sharing value types between entities

Posts   
 
    
Robert.W
User
Posts: 79
Joined: 19-Jun-2007
# Posted on: 28-Oct-2010 14:23:54   

Hi,

Is sharing a value type between entities possible? How would I set it up in the designer? Example:

Customer { string Address1 string Address2 }

SomePerson { string Address1 string Address2 }

would become:

Address { string Address1 string Address2 }

Customer { Address SomeAddress }

SomePerson { Address SomeAddress }

and Address is the same class in both examples.

MTrinder
User
Posts: 1461
Joined: 08-Oct-2008
# Posted on: 28-Oct-2010 22:01:11   

Yes this is possible - simply create a value type in the designer and assign it to one or more entities.

Note that value types are not supported when using the LLBLGen framework, only in the 3rd party frameworks.

Matt

Robert.W
User
Posts: 79
Joined: 19-Jun-2007
# Posted on: 29-Oct-2010 07:46:54   

Thanks. I somehow missed the "add new field" grid row simple_smile