this is my mapping

public class OrderMapping: ClassMap<Order>
    {
        public OrderMapping()
        {
            Table("Order");

            Id(x => x.Id, "orderId").
                GeneratedBy.Identity();

            Map(x => x.Name, "Name").Not.Nullable();

            Map(x => x.LastName, "LastName").Not.Nullable();

            Map(x => x.Adress, "Adress").Not.Nullable();

            HasMany(x => x.OrderItemses).KeyColumn("orderId").Cascade.All();

        }
 
    }

When data came  from client its rewrite all data in db. Why?
 

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/nhusers/-/HdxDAQl6kfIJ.
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