IMO, in term of OOP, "Name" is not a PrimitiveType and should be an aggregation.I would see how look you class in the create use-case.
2009/5/20 rrejc <[email protected]> > > Ooops I have just noticed that I screwed up when I was writing my > post. Correct MyClass is > > public class MyClass > { > public virtual int Id { get; set; } > public virtual string Code { get; set; } > public virtual string Description { get; set; } > public virtual string Name { get; set; } > } > > So yes, Name is a primitive type (string). > I think that it would be better that my localized name is resolved on > the server... > > It's all about localizing system tables for multilanguage web site and > I am trying to build the "easiest" (most efficient) solution (very > like the blog post from my previous reply). > > > > On May 20, 6:40 pm, Fabio Maulo <[email protected]> wrote: > > In your opinion:-Talking using OOP concepts the property "Name" is a > > PrimitiveType or should be a class with behavior ?-Your "MyClass" has a > > property "Name" or an aggregation with "Localized-Names" ? > > -The property "Localized-Name" (singular) should be resolved by the > client > > or the server ? > > > > After think about all these things implement what you need activating the > > filter. > > > > 2009/5/20 rrejc <[email protected]> > > > > > > > > > > > > > Hmmm, that's odd because I read about formula filters on this blog: > > > > >http://ayende.com/Blog/archive/2006/12/26/LocalizingNHibernateContext. > .. > > > He's did the same thing I did (except that my resource id is not my > > > primary key, and that he is using older version). > > > > > Is there any other suggestion how to achieve this? > > > > > Thanks! > > > > > On May 20, 3:55 pm, Fabio Maulo <[email protected]> wrote: > > > > 2009/5/20 rrejc <[email protected]> > > > > > > > Is it this possible (to have filters in formula) and how? > > > > > > <formula> is SQL and shouldn't have parameters.Each time somebody is > > > using > > > > <formula> or <where> or <order-by> he should ask to himself if a > > > > business-issue is delegated to the persistent-layer. > > > > <formula> with parameter may work with filter in some cases but not > in > > > all > > > > cases (<formula> with parameters is a not supported feature). > > > > > > -- > > > > Fabio Maulo > > > > -- > > Fabio Maulo > > > -- Fabio Maulo --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
