Using generic classes with ObjectDataSource

后端 未结 3 1474
走了就别回头了
走了就别回头了 2021-01-02 10:30

I have a generic Repository class I want to use with an ObjectDataSource. Repository lives in a separate project called DataAccess. According to this post

3条回答
  •  借酒劲吻你
    2021-01-02 10:31

    Darren,

    Many, many thanks for your post. I've been fighting with this all day. Strangely, in my case, I need to double the square brackets, e.g. for your piece of code:

    MyProject.Repository`1[[MyProject.MessageCategory, DataAccess, Version=1.0.0.0, Culture=neutral, PublicKey=null]], DataAccess, Version=1.0.0.0, Culture=neutral, PublicKey=null

    Roger

提交回复
热议问题