I\'d like to know if is there something like a Trigger (of databases) in NHibernate开发者_如何学运维 that I canuse per entity ?
I have a component which contains a collection.I can\'t seem to get NHibernate to persist items in the collection if I have the collection marked as Inverse.They will persist if I don\'t have Inverse
I have the following map. I wish to map BasketItem to the class \"Product\". So basically when i iterate thru the basket i can get the product name
I have the following map. My intention is for the order.BasketId to map to orderItem.BasketId. Tho when i look at the sql i see that it\'s mapping
I have a Date class which wraps over the DateTime? class (aids in mocking DateTime.Now, our domain ,etc).
I\'ve got a simple many-to-one relationship (an Order has a Customer who placed it).Here\'s the except from my Order mapping:
If I forgot to add mappings to a persister object, NHibernate will throw an exception when I\'ll run the application.
I have a child object in the database that looks like this: CREATE TABLE Child ( ChildIduniqueidentifier not null,
<property name=\"NetworkRunId\" column=\"Network_Run_Id\" /> <property name=\"StudyKey\" column=\"Study_Key\" insert=\"false\" update=\"false\" />
My error mess开发者_运维技巧age: NHibernate.MappingException : broken column mapping for: ItemDetails.id of: NHibReg.Domain.RegDetail, type Int32 expects 1 columns, but 2 were mapped