HCL Technologies interview question

To write a function in entity framework