<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Dynamic Data Entry with WPF and LINQ</title><link>http://blogs.msdn.com/b/bethmassi/archive/2008/06/24/dynamic-data-entry-with-wpf-and-linq.aspx</link><description>In my last post on this subject I explored creating WPF UI's dynamically using XML literals. The one part that bugged me a bit was that even though the UI was dynamic, we were using a fixed object model of our customer (using LINQ to SQL classes). I wanted</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Dynamic Data Entry with WPF and LINQ</title><link>http://blogs.msdn.com/b/bethmassi/archive/2008/06/24/dynamic-data-entry-with-wpf-and-linq.aspx#9918800</link><pubDate>Fri, 06 Nov 2009 20:53:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9918800</guid><dc:creator>Gilbert</dc:creator><description>&lt;p&gt;Hello! Beth Massi. I really appreciate all your efforts for helping us to learn in vb. Actually I'm just new in wpf and the two wpf video series help me a lot to learn on it. May i request if you could upload your video more on wpf same as the previous with 26 video. Many Thanks!!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9918800" width="1" height="1"&gt;</description></item><item><title>re: Dynamic Data Entry with WPF and LINQ</title><link>http://blogs.msdn.com/b/bethmassi/archive/2008/06/24/dynamic-data-entry-with-wpf-and-linq.aspx#9583954</link><pubDate>Sat, 02 May 2009 23:32:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9583954</guid><dc:creator>Railton</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I've just got round to looking at this again. &amp;nbsp;I have managed to get it to work but I had to create a new tableadapter and change the declarations so they included ce for example sqlcedataadapter.&lt;/p&gt;
&lt;p&gt;I also found that I get an error on the XamlReader.Load if the column names have a space in them.&lt;/p&gt;
&lt;p&gt;Thanks again for your help.&lt;/p&gt;
&lt;p&gt;Railton.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9583954" width="1" height="1"&gt;</description></item><item><title>re: Dynamic Data Entry with WPF and LINQ</title><link>http://blogs.msdn.com/b/bethmassi/archive/2008/06/24/dynamic-data-entry-with-wpf-and-linq.aspx#9571272</link><pubDate>Mon, 27 Apr 2009 19:47:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9571272</guid><dc:creator>Beth Massi</dc:creator><description>&lt;p&gt;Hi Railton,&lt;/p&gt;
&lt;p&gt;There should only be one reference to the GetTableSchema stored proc. All you need to do is change the query on the TableAdapter on the TableSchema dataset. Just right-click and select Configure and then you can change the query to select from your metadata table instead. For more info on configuring TableAdapter queries: &lt;a rel="nofollow" target="_new" href="http://msdn.microsoft.com/en-us/library/kda44dwy.aspx"&gt;http://msdn.microsoft.com/en-us/library/kda44dwy.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;HTH,&lt;/p&gt;
&lt;p&gt;-B&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9571272" width="1" height="1"&gt;</description></item><item><title>re: Dynamic Data Entry with WPF and LINQ</title><link>http://blogs.msdn.com/b/bethmassi/archive/2008/06/24/dynamic-data-entry-with-wpf-and-linq.aspx#9569047</link><pubDate>Sun, 26 Apr 2009 12:32:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9569047</guid><dc:creator>Railton</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for the reply, I'm Ok with the concept of storing meta-data in my own tables and retrieving it via sql. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Looking at the code there are quite a few references to the stored procedure and its result set, the area I think I will struggle is converting these references to use the data returned from the SQL. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hope this makes sense! :)&lt;/p&gt;
&lt;p&gt;Railton.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9569047" width="1" height="1"&gt;</description></item><item><title>re: Dynamic Data Entry with WPF and LINQ</title><link>http://blogs.msdn.com/b/bethmassi/archive/2008/06/24/dynamic-data-entry-with-wpf-and-linq.aspx#9565101</link><pubDate>Thu, 23 Apr 2009 20:13:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9565101</guid><dc:creator>Beth Massi</dc:creator><description>&lt;p&gt;Hi Railton,&lt;/p&gt;
&lt;p&gt;Just create a table that contains the metadata you need, i.e. TableName, ColumnName, Type, Length, IsPrimaryKey and fill it with the information about each table. Then just query that instead. It's more maintance becuause you need to make sure the schema and the metadata are in sync but it's the easiest approach for SQL Compact. &lt;/p&gt;
&lt;p&gt;HTH,&lt;/p&gt;
&lt;p&gt;-B&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9565101" width="1" height="1"&gt;</description></item><item><title>re: Dynamic Data Entry with WPF and LINQ</title><link>http://blogs.msdn.com/b/bethmassi/archive/2008/06/24/dynamic-data-entry-with-wpf-and-linq.aspx#9564158</link><pubDate>Thu, 23 Apr 2009 10:29:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9564158</guid><dc:creator>Railton</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for the steer, however I don't think my skill are deep enough to convert your code :(&lt;/p&gt;
&lt;p&gt;Thanks again,&lt;/p&gt;
&lt;p&gt;Railton&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9564158" width="1" height="1"&gt;</description></item><item><title>re: Dynamic Data Entry with WPF and LINQ</title><link>http://blogs.msdn.com/b/bethmassi/archive/2008/06/24/dynamic-data-entry-with-wpf-and-linq.aspx#9563681</link><pubDate>Thu, 23 Apr 2009 03:59:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9563681</guid><dc:creator>Beth Massi</dc:creator><description>&lt;p&gt;Hi Railton,&lt;/p&gt;
&lt;p&gt;The only thing that won't work with SQL Compact is the GetTableSchema stored procedure. SQL Compact doesn't support stored procs so you'll need another way to get the metadata, like storing it in another table. &lt;/p&gt;
&lt;p&gt;HTH,&lt;/p&gt;
&lt;p&gt;-B&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9563681" width="1" height="1"&gt;</description></item><item><title>re: Dynamic Data Entry with WPF and LINQ</title><link>http://blogs.msdn.com/b/bethmassi/archive/2008/06/24/dynamic-data-entry-with-wpf-and-linq.aspx#9563453</link><pubDate>Thu, 23 Apr 2009 01:59:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9563453</guid><dc:creator>Railton</dc:creator><description>&lt;p&gt;Ok, thanks.&lt;/p&gt;
&lt;p&gt;Quick question. &amp;nbsp;Is it possible to use this technique on the compact edition?&lt;/p&gt;
&lt;p&gt;I am writing an application which uses the compact edition database and I need a dynamic UI for editing the table data because columns on the tables will not always be the same and I don't want to have to modify the application each time. &amp;nbsp;Your code did exactly what I need so was hoping I could use it.&lt;/p&gt;
&lt;p&gt;Thanks again for your help.&lt;/p&gt;
&lt;p&gt;Railton&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9563453" width="1" height="1"&gt;</description></item><item><title>re: Dynamic Data Entry with WPF and LINQ</title><link>http://blogs.msdn.com/b/bethmassi/archive/2008/06/24/dynamic-data-entry-with-wpf-and-linq.aspx#9563433</link><pubDate>Thu, 23 Apr 2009 01:50:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9563433</guid><dc:creator>Beth Massi</dc:creator><description>&lt;p&gt;Hi Railton,&lt;/p&gt;
&lt;p&gt;Ah, yes. You need SQL Server or the free SQL Server Express edition: &lt;a rel="nofollow" target="_new" href="http://www.microsoft.com/express/sql/"&gt;http://www.microsoft.com/express/sql/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;HTH,&lt;/p&gt;
&lt;p&gt;-B&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9563433" width="1" height="1"&gt;</description></item><item><title>re: Dynamic Data Entry with WPF and LINQ</title><link>http://blogs.msdn.com/b/bethmassi/archive/2008/06/24/dynamic-data-entry-with-wpf-and-linq.aspx#9563417</link><pubDate>Thu, 23 Apr 2009 01:41:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9563417</guid><dc:creator>Railton</dc:creator><description>&lt;p&gt;Hi Beth,&lt;/p&gt;
&lt;p&gt;I tried the download but I am not able to use the NORTHWND.MDF in my environment, I get a similar error to the one I mentioned before when testing the connection. &amp;nbsp;Could this be because I only have SQL Server 2008 Compact Edition installed?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Railton&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9563417" width="1" height="1"&gt;</description></item></channel></rss>