Exactly. They are both. These are from my domain model. And i want to use as data transfer objects for screen display. I want them to be as light as possible. That s why i want all my fields to be either string or int.
Can i do the projections in the xml mapping instead of doing them in the c# file ? On 30 juil, 19:27, Nexus <[email protected]> wrote: > 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 -- Masquer le texte des > > messages précédents - > > - Afficher le texte des messages précédents - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
