I write a WCF service for Insert and delete operation here we used generic method but it gives following error \"System.Runtime.Serialization.InvalidDataContractException: T
I think it is imposible, how could it generate the wsdl that way?
You have two options:
You could send the type as a parameter.
If you want to expose crud operations for entities I would recommend to use a code generator, maybe a T4 template for EF.