TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Guest User
Tech Writer
56
1.9k
Execute action per each item on a list
May 16 2016 3:34 PM
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.
Reply
Answers (
2
)
create setup application
error api meaningcloud