Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Entity Framework - LINQ to Entities query to populate DropDownList control

Posted on 2008-10-08
1
Medium Priority
?
1,852 Views
Last Modified: 2013-11-11
Experienced .NET web developer here looking to get going on all this Entity Framework stuff. I have a book ordered, but it doesn't ship till December! I have the entity data model created from my database and made a few modifications to that and I think I have a fair grasp on all that. I've also managed a couple of LINQ queries to return string lists of values from a single property queried across a range of objects (such as 'from c in entityModel.Contacts select c.Name;'). What I'd like to see is a simple example of is how to write a method like getContactList() to query my Entity Data model and return a ContactID and Name in some form that can be bound to a DropDownList control.

Thanks
0
Comment
Question by:danburyit
1 Comment
 
LVL 1

Accepted Solution

by:
danburyit earned 0 total points
ID: 22677462
This seems to be very helpful.

http://www.primaryobjects.com/CMS/Article95.aspx
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…

877 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question