There is not enough information here to understand what might be going on.
Please give more information:

What does "when data came from client" mean? I.e. what does your code do?
What does "rewrite all data in db" mean exactly? I.e. can you describe what
SQL is executed, and why you think it's a problem?

/Oskar


2012/9/7 Роман Иванов <[email protected]>

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

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