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
Ami Kar
1.2k
558
17.9k
Multiple if else in linq select property
Feb 1 2021 4:51 AM
If family income is less then 20k then 10% discount , if income is less than 35k then 5 % discount above 35k no discount. var students= context.Students.Select (x=>new{ Income=x.parent.Income, Discount=x.parent.Income<20k?10:what to write here. })
Reply
Answers (
1
)
Do y'all generally use lazy loading while working with entity framewor
send email with excel attachment using sql stored procedure