Hi,
I have a query. Can i add read only columns in NHibernate schema which
must be ignored by update and insert query.

Actually i want to have some extra information with Table data.
suppose we have a table "Users" has following fields

1- User Id
2- User Name
3- User Address
4- User Email

I want following two fields more, which are calculate by a complex
query.


5- Number of Failed Transactions
6- Number of Invalid Transactions


Currently i have mad a view ["VW_Users"] with following fields and
Instead of providing actual table name ["Users"] in xml file
"Users.hbm.xml", I provide name of new created view ["VW_Users"].
Although this view is updateable but Nhibernate using calculated
fields (5,6) in update query. I just want Nhibernate to ignore these
calculated fields.


1- User Id
2- User Name
3- User Address
4- User Email
5- Number of Failed Transactions
6- Number of Invalid Transactions







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