Hi there,

So we are talking about entities in our domain model ? Then why not
just

public class Employee
{
   int Id { get; protected set;  }
   string Name { get;set; }
   EmployeeType Type { get;set;  }
   string EmployeeTypeName { get { return Type!= null ? Type.Name :
null; } }
}

If not, so they are simple screen dto's use projections !

greetings


On 30 jul, 19:04, similitude2009 <[email protected]> wrote:
> I found similar thread here.
>
> http://groups.google.com/group/nhusers/browse_thread/thread/204c4d07f...
>
> On 30 juil, 11:12, similitude2009 <[email protected]> wrote:
>
>
>
> > I have this case
>
> > Employe
> >  {int id;
> >  string name;
> >  int  IdEmployeType;
> >  }
>
> > EmployeType
> > {int Id;
> > string EmployeTypeName;
>
> > }
>
> > The date are in 2 tables with a foreign key between
> > Employe.IdEmployeType and EmployeType.Id
>
> > I want to do this
> > Employe
> >  {int id;
> >  string name;
> >  string  EmployeTypeName;
> >  }
>
> > How can i do ?- Tekst uit oorspronkelijk bericht niet weergeven -
>
> - Tekst uit oorspronkelijk bericht weergeven -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to