Added static assert if primary key field doesn't exists.