On 6 jan, 14:27, "Fabio Maulo" <[email protected]> wrote:
> I don't know which is exactly your case... I hope that you know when use C#
> for what C# was done, and SQL for what SQL was done.The use of <formula> tag
> feature was implemented for some special case, when is impossible calculate
> something in the business-side and for some trick but not to use SQL
> everywhere.

I know but SQL is so much faster in calculating an average than C# (or
similar). Mapping a calculated field from the DB to this column might
be an option but that puts the business logic in the database, making
it even more scattered.

> Remember that NHibernate is a persistence-layer and nothing more than a very
> good persistence layer; don't delegate business responsibility to NH, take
> care with this.

I know but sometimes you must break your basic believes to enhance
performance to applications. Sticking to every single rule doesn't get
you very far...
I guess I'll have to stick to a View for this...

Hielke
--~--~---------~--~----~------------~-------~--~----~
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