Hello!
Good Morning
I have the same error: "Could not synchronise database state with session".
And MySql.Data.MySqlException :#23000Cannot add or update a child row.
is my problem comes from Mysql?
i attach at this post my Mysql's scripts:
Table Extrusion:
Code:
CREATE TABLE Extrusion (
Worder_extrulg varchar(15) NOT NULL,
Conducteur_pr_core INT NULL,
Num smallint unsigned,
Num_bobinetor varchar(15),
......
PRIMARY KEY (Worder_extrulg),
Index (Worder_extrulg)
)
TYPE=InnoDB;
Table resultat:
Code:
CREATE TABLE resultat
(
Worder_extrulg varchar(15),
Diam_extf2m double,
Diam_extf1m double,
Diam_extc1m double,
Ovalityf2m double,
Ovalityc1m double,
Ovalityf1m double,
Rexcentm double,
PRIMARY KEY(Worder_extrulg),
index(Worder_extrulg)
)type=innodb;
Foreign key:
Code:
ALTER TABLE resultat ADD CONSTRAINT fk_index1 FOREIGN KEY(Worder_extrulg) REFERENCES extrusion(Worder_extrulg);
ALTER TABLE extrusion ADD CONSTRAINT fk_index2 FOREIGN KEY(Worder_extrulg) REFERENCES resultat(Worder_extrulg);
Thanks for your help!
Best regards,
Guillaume