Committing broken code

I did a lot and I want to save what I have done. It doesn't work, there
is some sort of entity framework problem I am trying to figure out.