开发者

Linq to entity timing problem

I crea开发者_StackOverflowted a data model that has some views from my database as entities,when I create a linq statment that has part of this view's entities ,the time processor take to execute the linq statment is very long.. can anyone help?


this query was working by very short time but before adding the views in the model but after adding views it takes more that 10 minutes to be executed var roles=(from r in db.SystemObjectSet where r.ObjectsTypes.ObjectType.Equals("Role") select r ).ToList();


The solution was to map the view as a is a table in the entity model then the problem is solved

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜