hi
this is my sample
when checked multiple item in CheckComboBox
but only one checked item CheckComboBox save to database
how to save All checked items CheckComboBox to database?
thanks
Comments: ** Comment from web user: BoucherS **
this is my sample
when checked multiple item in CheckComboBox
but only one checked item CheckComboBox save to database
how to save All checked items CheckComboBox to database?
thanks
Comments: ** Comment from web user: BoucherS **
Hi,
You are right, I commented the lines of code to access the database since I don't have access to it. From what I see, it is a relationship error in the constructor of DocumentMap(). You should try to rework the relationship you want, considering the PropertyType change (Person to ObservableCollection<Person> in Document).
Maybe something like
this.HasMany( t => t.Persons )
.WithMany( p => p.Documents )
.Map( m => m.MapLeftKey("ABC").MapRightKey("DEF") );
Bu this is out of our scope. We focus on the toolkit, not a database or the way it is constructed.