I am using entity framework code first approach, and I am building a generic Repository class that provides data access. In this class I want an Add(T entity) m
Add(T entity)
Add a generic constraint to your repository class:
public class Repository where TEntity : class