Why do I get “error: … must be a reference type” in my C# generic method?

前端 未结 3 1986
离开以前
离开以前 2020-12-05 13:30

In various database tables I have both a property and a value column. I\'m using Linq to SQL to access the database.

I\'m writing a method which returns a dictionary

3条回答
  •  忘掉有多难
    2020-12-05 13:48

    public class TEntityRepository : EFRepository , ITEntityRepository
        where TEntity : class, new()
    {
    }
    

提交回复
热议问题