Completed code from EF6 Demo