How to connect wpf with databasehow can I connect a WPF project to SQL Server 2005 <br>I try to do it like I do in past with Windows Form Application <br>but I cant do it <br>I think that their is a new way to connect to database with WPF Application , so plz tell me about it and if any examples or links for help <br>thank you alot <br><br><br><br><br>© 2009 Microsoft Corporation. All rights reserved.Thu, 19 Jun 2008 00:15:52 Zfda9f38e-2c7a-4d6f-baf2-f352f69c0d0ahttp://social.msdn.microsoft.com/Forums/en-US/wpf/thread/fda9f38e-2c7a-4d6f-baf2-f352f69c0d0a#fda9f38e-2c7a-4d6f-baf2-f352f69c0d0ahttp://social.msdn.microsoft.com/Forums/en-US/wpf/thread/fda9f38e-2c7a-4d6f-baf2-f352f69c0d0a#fda9f38e-2c7a-4d6f-baf2-f352f69c0d0aToDayIsNowhttp://social.msdn.microsoft.com/Profile/en-US/?user=ToDayIsNowHow to connect wpf with databasehow can I connect a WPF project to SQL Server 2005 <br>I try to do it like I do in past with Windows Form Application <br>but I cant do it <br>I think that their is a new way to connect to database with WPF Application , so plz tell me about it and if any examples or links for help <br>thank you alot <br><br><br><br><br>Mon, 03 Mar 2008 15:35:12 Z2008-03-03T20:22:03Zhttp://social.msdn.microsoft.com/Forums/en-US/wpf/thread/fda9f38e-2c7a-4d6f-baf2-f352f69c0d0a#3ec967ee-aab5-4b73-b6f8-8d3cc83991f8http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/fda9f38e-2c7a-4d6f-baf2-f352f69c0d0a#3ec967ee-aab5-4b73-b6f8-8d3cc83991f8Thomas Claudius Huberhttp://social.msdn.microsoft.com/Profile/en-US/?user=Thomas%20Claudius%20HuberHow to connect wpf with database<p align=left><font face=Arial size=2>In WPF you could also use ADO.NET and bind e.g. to the tables in a dataset. But up to now there are now wizards in Visual Studio for data connection. E.g. you can't drop tables out of DataSource-Explorer onto your form. Possibilities:</font></p> <ul> <li> <div align=left>Add a typed DataSet to your Project, add Tables and TableAdapters, use TableAdapters to load data and bind your UI to the Data</div> <li> <div align=left>Instead of DataSets you could also use Linq to SQL and bind to your special objects.</div> <li> <div align=left>...</div></li></ul> <p align=left>You should take a look at Data Binding (which is much more than only binding to data from a dataset) and especially at the interface ICollectionView and the three classes CollectionView, ListCollectionView and BindingListCollectionView. In WPF you don't use a BindingSource-Objekt (and so a CurrencyManager) to manage the currentItem. Instead you use an ICollectionView that manages the currentItem and Position of the Collection it points to.</p>Mon, 03 Mar 2008 16:23:06 Z2008-03-03T20:21:55Zhttp://social.msdn.microsoft.com/Forums/en-US/wpf/thread/fda9f38e-2c7a-4d6f-baf2-f352f69c0d0a#2b755964-9fbf-4e0d-bd67-9f4446ec9b32http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/fda9f38e-2c7a-4d6f-baf2-f352f69c0d0a#2b755964-9fbf-4e0d-bd67-9f4446ec9b32Mike Cook - MSFThttp://social.msdn.microsoft.com/Profile/en-US/?user=Mike%20Cook%20-%20MSFTHow to connect wpf with database<p align=left><font face=Arial size=2></font> </p> <p>I highly recommend you take a look at a new technology we released with .NET 3.5 called LINQ to SQL.  LINQ stands for &quot;Language Integrated Query&quot;, and allows you to write really intuitive code to interface with your database.  Here's a link to a short 10-minute video that should be able to help you get up and running.</p> <p align=left> </p> <p align=left><a title="http://asp.net/learn/videos/video-232.aspx" href="http://asp.net/learn/videos/video-232.aspx">http://asp.net/learn/videos/video-232.aspx</a></p>Mon, 03 Mar 2008 17:42:39 Z2008-03-03T20:22:03Zhttp://social.msdn.microsoft.com/Forums/en-US/wpf/thread/fda9f38e-2c7a-4d6f-baf2-f352f69c0d0a#6392f523-3da4-4f98-b2e4-b5dba3219a4dhttp://social.msdn.microsoft.com/Forums/en-US/wpf/thread/fda9f38e-2c7a-4d6f-baf2-f352f69c0d0a#6392f523-3da4-4f98-b2e4-b5dba3219a4dToDayIsNowhttp://social.msdn.microsoft.com/Profile/en-US/?user=ToDayIsNowHow to connect wpf with databasethankx alot for ur answers <br>and really thank you for the video<br>Mon, 03 Mar 2008 19:55:55 Z2008-03-03T19:55:55Z