Den 27 mars 2012 13:27 skrev beginnerFNH <[email protected]>:
> It works but if i create a new Dział (Department) like you could see. > But I want use this: > > Dział = comboBox1.SelectedValue.ToString() > No you don't, becase a Dział is a Dział and not a string. Try something like this: Dział = session.Load<Dział>((some casting required)comboBox1.SelectedValue); I.e. keep the identifiers in the combobox and retrieve a proxy for the selected element when the button is clicked. Many variations possible of course. /Oskar -- 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.
