阅读背景:

将随机Guid列添加到Linq to Entities查询以获取随机记录

来源:互联网 

I've found some articles about using the RandomView view and the GetNewID function to pull back randomized records, but they are using this method with Linq to SQL which allows Functions and Stored Procs to be used with no return value or a scalar return value. From what I understand, a Stored Proc has to been returned as one of the Entity Framework objects from my generated model. I have been able to get that to work as an object, but not returning a scalar or no return set.I've found some articles about using the Random




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: