Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

Commented Unassigned: CheckComboBox mvvm problem [20774]

$
0
0
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 **

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.


Viewing all articles
Browse latest Browse all 4964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>