Initial Entity framework implementation.