hi all, i have this objects
class container
{
int Id { get; set;}
string name {get; set;}
IData {get; set;}
}
interface IData { } //i simplify it, it has same members
class DataA
{
int MyDataA {get;set}
}
class DataB
{
string MyDataB {get;set}
}
where Container is an entity, IMyData implementations are value
objects.
i want know what's the simpler way to map Container in a single table
'ContainerTable'
for example a table with the columns Id, Name, Discriminator?,
MyDataA, MyDataB
ie i want samething as table per class-hierarchy at 'component' level.
i can't refactor my 'domain' to work with a BaseContainer class and 2
subclasses becouse i need that IMyData are atomic/separate objects
and i can't change the database to use another table (ie i can't
manage IMyData as entities)
it's possible?
thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---