add partial methods to context
fix context generated
- fix one to one issue
update for EF 6
Merged with upstream master

Changes for EF 6