Added method FunWithEntitySQL