Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
2
Reply
Execute action per each item on a list
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
Optimus Vulgaris
8y
277
1
Reply
Hi,
I got a bit stuck in trying to perfom an action per each item on a list.
I'm filling in the list with:
HyperlinksDAL hl =
new
HyperlinksDAL();
hl.GetAll();
HyperlinksDAL:
public
List<Hyperlink> GetAll()
{
using
(var context =
new
servicesEntities())
{
return
context.Hyperlinks.ToList();
}
}
And I figured I could use a foreach to then fill in a series for a chart like:
foreach
(var i
in
list)
{
series.DataPoints.Add(
new
CategoricalDataPoint(500,
"jan"
));
}
Regards.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
create setup application
error api meaningcloud