Force DataSourceLoader to load data before it is returned from a controller's action
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Reproduce the shown controller action with a disposed MyDbContext and DataSourceLoader.Load(db.Table0, loadOptions), then inspect how the returned query is executed. Done means the action can dispose the context without an ObjectDisposedException while still returning the loaded data; add or update a regression test if the repository provides a suitable test location.
Written by the indexing model from the issue text.
Description
// GET
using (var db = new MyDbContext())
{
return this.Request.CreateResponse(DataSourceLoader.Load(db.Table0, loadOptions));
}
This code throws ObjectDisposedException because the MyDbContext instance is disposed of before the inner query is executed.
Related:
- Dominant language
- C#
- Stars
- 165
- Forks
- 140
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 4
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from DevExpress/DevExtreme.AspNet.Data
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
DevExpress/DevExtreme.AspNet.Data#588 · 3 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Dependency Dashboard Open
Difficulty 4/5 3-5 days Newbie friendliness 15/100
-
ES6 support Openenhancement
Difficulty 5/5 Over a week Newbie friendliness 25/100
All issues in DevExpress/DevExtreme.AspNet.Data
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
nightscout/nocturne#1425 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Documentation
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
cake-build/cake#5024 ·
-
Frontend status/draft TechnicalDebt
Difficulty 2/5 1-2 days Newbie friendliness 75/100
Altinn/altinn-auth#4143 ·