I am having trouble saving dates to my MySQL database (code below)
C#
var abook = db.egw_addressbook.Local.FirstOrDefault(o => o.contact_id == 16875);
abook.org_name = mvm.org_name;
abook.hex_srv_start = mvm.hex_srv_start;
db.SaveChanges();
MessageBox.Show("Saved");
XAML
<DatePicker x:Name="Txthex_srv_start" SelectedDate="{Binding hex_srv_start}" HorizontalAlignment="Left" Height="26" Margin="10,55,0,0" VerticalAlignment="Top" Width="111" />
If I make any changes to the date, I get the following error:
Error: Validation failed for one or more entities. See 'EntityValidationErrors' property for more details. - -2146232032
Any ideas?