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: md110 **
hi
yes, "ABC" and "DEF" are Keys from my Document or Person classes
and also I changed this metod:
__this.HasMany( t => t.Persons )
.WithMany( p => p.Documents )
.Map( m => m.MapLeftKey("PersonID").MapRightKey("DocID") );__
Or
_this.HasMany( t => t.Persons )
.WithMany( p => p.Documents )
.Map( m => m.MapLeftKey("DocID").MapRightKey(" PersonID") );__
but exception error:
An error occurred while saving entities that do not expose foreign key properties for their relationships. The EntityEntries property will return null because a single entity cannot be identified as the source of the exception. Handling of exceptions while saving can be made easier by exposing foreign key properties in your entity types. See the InnerException for details
I believe my problem are other solution
thank you