Workarounds for using custom methods/extension methods in LINQ to Entities

后端 未结 3 693
迷失自我
迷失自我 2020-12-09 21:29

I have defined a GenericRepository class which does the db interaction.

 protected GenericRepository rep = new GenericRepository();

And

3条回答
  •  没有蜡笔的小新
    2020-12-09 21:39

    I realize this already has an accepted answer, I just thought I'd post this in case someone wanted to try writing a LINQ expression interceptor.

    So... here is what I did to make translatable custom extension methods: Code Sample

    I don't believe this to be a finished solution, but it should hopefully provide a good starting point for anyone brave enough to see it through to completion.

提交回复
热议问题