Added a bug fix to the tt files generated from the edmx.