Thank you so much, this is exactly, what i've been looking for! Have a nice day
On 13 Aug., 16:35, Fabio Maulo <[email protected]> wrote: > No, you don't.What you need is: > > [Valid] > public Foo FooBar; > > 2009/8/13 stromflut <[email protected]> > > > > > > > > > Hi! > > > I have got the following structure [simplified]: > > > public class Bar { > > [NotNull] > > public int TestValue; > > public Foo FooBar; > > } > > > public class Foo{ > > [NotNull] > > public string Message; > > } > > > NHibernate.Validator successfully validates the Bar class including > > TestValue which has the well-known type INT. But if i save the whole > > object (including the attached Foo object), Foo.Message does not get > > validated. > > > Do I really have to write a custom Validation Class for Foo - even if > > Foo.Message is a string Type? > > > Thanks for your help! > > -- > Fabio Maulo- Zitierten Text ausblenden - > > - Zitierten Text anzeigen - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
