Implemented custom entity framework model