Click here to Skip to main content
16,012,468 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have designed a WPF detail form (the XAML portion).
I also have an MS_Access database designed with dummy records for testing.
Using LINQtoSQL, I need to:
(1) Retrieve a list of key values into a menu(using WPF)
(2) Display the selected record within the WPF detail form
(3) Allow input of records to the database via the detail form if the table key does not exist.
I have plenty of experience with MS_Access, but the interface design using WPF is new to me.
How do I code the LINQ within the xaml and C# code-behind to make this work?
I'm a beginner at implementing C# also.
Is the IEnumerable all I need? or so I need to "call" the database somehow, even though it is already included in the project within Visual Studio.
Thanks!
Posted
Updated 11-Jan-11 3:50am
v3

I am a little confused by your question, especially the subject line.

LINQ has little or nothing to do with the user interface.

Basically you would use LINQ to return an IEnumerable<> collection which you bind to in the WPF app, either Xaml or code behind.
 
Share this answer
 
I'm a beginner at implementing C# also.
Is the IEnumerable all I need? or so I need to "call" the database, even though it is already included in the project within Visual Studio.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900