<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><item><title>Comment on Automatic Generation of Metadata &amp;quot;Buddy&amp;quot; Classes by james.chambers</title><link>/blog/automatic-generation-of-metadata-buddy-classes#comment-157</link><description>Steve, are you still having issue with this?

If you re-evaluate the table/entity in question, does the PK identified on the table match the one in the EDMX?</description><pubDate>2012-04-19T20:27:28</pubDate><guid isPermaLink="false">urn:comment:157</guid></item><item><title>Comment on Prairie Dev Con - The Windows Phone 7 Conference App by Elliot</title><link>/blog/prairie-dev-con-ndash-the-windows-phone-7-conference-app#comment-156</link><description>MVVM Toolkit is whatever superior from what i used before. It made visual binding in Expression Blend really as easy as a piece of cake.</description><pubDate>2012-04-19T11:31:45</pubDate><guid isPermaLink="false">urn:comment:156</guid></item><item><title>Comment on Automatic Generation of Metadata &amp;quot;Buddy&amp;quot; Classes by Steve</title><link>/blog/automatic-generation-of-metadata-buddy-classes#comment-152</link><description>I found the error - in two places you show "Scaffold ControllerWithMetadata..." and in one, you show the correct "Scaffold ControllerWithEntityMetadata..."  So, once I caught onto that, it ran.  However, I'm now getting:  Get-PrimaryKey : Cannot find primary key property for type 'MvcApplication7.Mod
els.Role'. No properties appear to be primary keys.

Where should I be looking to figure out what is wrong.  The EDMX shows Role_PK to have the Entity Key property set to True.

Any help would be appreciated.  Thanks.</description><pubDate>2012-04-11T18:30:07</pubDate><guid isPermaLink="false">urn:comment:152</guid></item><item><title>Comment on Automatic Generation of Metadata &amp;quot;Buddy&amp;quot; Classes by Steve</title><link>/blog/automatic-generation-of-metadata-buddy-classes#comment-151</link><description>This looks like it would be a great addition to a project I'm starting, but I'm having trouble using it.  Do you know if it works with MVC4?  I get this error:  Invoke-Scaffolder : A parameter cannot be found that matches parameter name 'Context'.</description><pubDate>2012-04-11T15:27:21</pubDate><guid isPermaLink="false">urn:comment:151</guid></item><item><title>Comment on Automatic Generation of Metadata &amp;quot;Buddy&amp;quot; Classes by Aki Siponen</title><link>/blog/automatic-generation-of-metadata-buddy-classes#comment-150</link><description>Hi,

This seems to be a great tool. Just the thing I've been looking for.

I'm using VWD 2010 Express and VB.NET and decided that I could convert EntityMetadata for VB.

Unfortunately I ran into errors immediately. I tried to isolate the errors and this is what it seems to amount to:

Template EntityMetadataHelperTemplate.vb.t4 containing:
&lt;#@ Template Language="VB" Debug="false" HostSpecific="true" Inherits="DynamicTransform" #&gt;
&lt;#@ output extension=".vb" #&gt;

Public Class whatever
End Class

works fine.

But whenever I add the line
&lt;#@ include file="EF.Utility.VB.ttinclude" #&gt;

to the template, I get an error:
System.ArgumentException: Property ReferencedAssemblies cannot contain null values or empty strings.
Parametrin nimi: options
   in  Microsoft.VisualBasic.VBCodeGenerator.CmdArgsFromParameters(CompilerParameters options)
...[Stack trace]...
   
Of course I copied the file EF.Utility.VB.ttinclude to the CodeTemplates\Scaffolders\EntityMetadata folder in my project.

I've been trying to figure out what's the reason, but haven't found any reasons for this.

I'm using EF 4.1, database first, DbContext Code Generator, which works just fine.

Any suggestions where I should start searching the problem?

</description><pubDate>2012-04-08T14:43:09</pubDate><guid isPermaLink="false">urn:comment:150</guid></item><item><title>Comment on Clearing out the Stresses - Inbox 0, Me 1 by Scott Hanselman</title><link>/blog/clearing-out-the-stresses-ndash-inbox-0-me-1#comment-149</link><description>AWESOME. That makes me happy.</description><pubDate>2012-04-06T03:52:34</pubDate><guid isPermaLink="false">urn:comment:149</guid></item><item><title>Comment on Automatic Generation of Metadata &amp;quot;Buddy&amp;quot; Classes by beginnerMVC</title><link>/blog/automatic-generation-of-metadata-buddy-classes#comment-146</link><description>Hi, is there a way to scaffold all the models in my context?</description><pubDate>2012-03-17T01:55:35</pubDate><guid isPermaLink="false">urn:comment:146</guid></item><item><title>Comment on PowerShell Script Examples for NuGet Packages by victor_foster</title><link>/blog/powershell-script-examples-for-nuget-packages#comment-143</link><description>Hi James,

Did you ever get the correct Get-ProjectItem example straightened out?  I'm looking for an example of how to Delete an Item in a Project but would like to avoid having a dependency on the T4 package.

thanks</description><pubDate>2012-02-15T19:39:01</pubDate><guid isPermaLink="false">urn:comment:143</guid></item><item><title>Comment on Them&amp;#39;re Big Shoes To Fill by Chris</title><link>/blog/them-re-big-shoes-to-fill#comment-137</link><description>Congrats, James, looking forward to seeing you in Calgary!</description><pubDate>2012-01-04T18:23:41</pubDate><guid isPermaLink="false">urn:comment:137</guid></item><item><title>Comment on Asp.Net MvcScaffolding Generates Extra Properties in Views, Or, &amp;quot;The Type Was Not Mapped&amp;quot; by james.chambers</title><link>/blog/asp.net-mvcscaffolding-generates-extra-properties-in-views#comment-134</link><description>DotNetWise...is there anything you can send me to review?  Anything unique about your Employee type/table that might throw a curve ball?  I'll do my best to help if you have anything you can add...can't repro at this end, sorry!  :o\</description><pubDate>2011-12-27T17:06:16</pubDate><guid isPermaLink="false">urn:comment:134</guid></item><item><title>Comment on Asp.Net MvcScaffolding Generates Extra Properties in Views, Or, &amp;quot;The Type Was Not Mapped&amp;quot; by DotNetWise</title><link>/blog/asp.net-mvcscaffolding-generates-extra-properties-in-views#comment-133</link><description>I am getting this error.

Get-PrimaryKey : Cannot find primary key property for type 'Employee'. No properties appear to be primary keys.

Note the POCOs are generated as you say, but they don't have any attributes as I am using EF 4.2 database first, so POCOs are generated

What am I doing wrong?

</description><pubDate>2011-12-22T10:03:45</pubDate><guid isPermaLink="false">urn:comment:133</guid></item><item><title>Comment on Asp.Net MvcScaffolding Generates Extra Properties in Views, Or, &amp;quot;The Type Was Not Mapped&amp;quot; by James</title><link>/blog/asp.net-mvcscaffolding-generates-extra-properties-in-views#comment-131</link><description>THANK YOU FOR THIS. I was banging my head on my desk over this problem. Without the code generator using DbContext is basically useless.

Also, the code generator is *NOT* included when fetching the latest package with NuGet. Instead you'll have to Add New Item -&gt; *Online Templates* and search for "DbContext". Hope that helps someone else!</description><pubDate>2011-12-16T21:30:23</pubDate><guid isPermaLink="false">urn:comment:131</guid></item><item><title>Comment on Prairie Dev Con - The Windows Phone 7 Conference App by james.chambers</title><link>/blog/prairie-dev-con-ndash-the-windows-phone-7-conference-app#comment-128</link><description>Hey Henry, thank you for the feedback!

Yeah, navigation has been the bane of my app. I'm really trying to find a balance there. I like your idea to drop the app bar where possible, as well as not navigating on "save fav".

I'll download DevTeach and try out your app...thanks again!</description><pubDate>2011-11-16T20:35:24</pubDate><guid isPermaLink="false">urn:comment:128</guid></item><item><title>Comment on Prairie Dev Con - The Windows Phone 7 Conference App by PHenry</title><link>/blog/prairie-dev-con-ndash-the-windows-phone-7-conference-app#comment-127</link><description>VERY COOL!  I like your app! (Yup, downloaded and played with it already, NICELY DONE!)  I also like your informal-yet-lets-get-er-done tone in your blog post, I'll be back! :)

re Navigation
I found similar issues with my WP7 apps as well, kind of a new challenge with mobile clients.  My suggestion, make a shallow natural conclusion to most/all navigations.  For example, after saving favourite, don't navigate to it, I've just read it, I'm good, I saved it for future reference, not immediate. (also a it inconsistent with Save and Favourites)  You might also want to remove the back button (and maybe the entire app bar) in certain places to gain that vertical space and let the user use the phones back button.  Just a suggestion.

I like how your app gets the conference data dynamically.  I chose to not do that for DevTeach Ottawa 2011, and it just doesn't feel AS engaging as yours with the "knowing you have the latest'n'greatest."

I look forward to seeing your code and learning (not judging, learnign! :) ).</description><pubDate>2011-11-16T15:22:49</pubDate><guid isPermaLink="false">urn:comment:127</guid></item><item><title>Comment on Errors With AdControl in Windows Phone 7.1 (Retail 7.5) by Irina</title><link>/blog/errors-with-adcontrol-in-windows-phone-7.1-retail-7.5#comment-125</link><description>I was just looking for the solution to this problem. This is very helpful. Thanks!</description><pubDate>2011-11-15T11:38:15</pubDate><guid isPermaLink="false">urn:comment:125</guid></item><item><title>Comment on Asp.Net MvcScaffolding Generates Extra Properties in Views, Or, &amp;quot;The Type Was Not Mapped&amp;quot; by james.chambers</title><link>/blog/asp.net-mvcscaffolding-generates-extra-properties-in-views#comment-124</link><description>Allyn: It seems you've covered off the things I would have tried (including jumping on one foot). Have you figured this out?  What I would try next is to throw together another clean project and see if you can reproduce the error that way.

Sammy: The command is run in the "Package Manager Console" in Visual Studio 2010.  It's there if you've installed SP1, and you can find it in View -&gt; Other Windows.  Hope this helps.</description><pubDate>2011-11-08T04:02:15</pubDate><guid isPermaLink="false">urn:comment:124</guid></item><item><title>Comment on Asp.Net MvcScaffolding Generates Extra Properties in Views, Or, &amp;quot;The Type Was Not Mapped&amp;quot; by sammy</title><link>/blog/asp.net-mvcscaffolding-generates-extra-properties-in-views#comment-122</link><description>where or how do you run that command? "Scaffold Controller YourEntity -DbContextType YourDataContextType -Force" ??</description><pubDate>2011-10-31T21:40:46</pubDate><guid isPermaLink="false">urn:comment:122</guid></item><item><title>Comment on Asp.Net MvcScaffolding Generates Extra Properties in Views, Or, &amp;quot;The Type Was Not Mapped&amp;quot; by AllynWA</title><link>/blog/asp.net-mvcscaffolding-generates-extra-properties-in-views#comment-121</link><description>I have the exact problem you describe, but when I install the ADO DbContext Code Generation item on the EDMX file and then hit the compile, I get this ugly thing:


Error	1	Running transformation: System.Runtime.InteropServices.COMException (0xE0434352): Exception from HRESULT: 0xE0434352

Server stack trace: 
   at EnvDTE.ProjectItems.AddFromFile(String FileName)
   at Microsoft.VisualStudio.TextTemplatingD9DBF81DBE6910168857B3C0602ECA5B.GeneratedTextTransformation.EntityFrameworkTemplateFileManager.VsEntityFrameworkTemplateFileManager.ProjectSync(ProjectItem templateProjectItem, IEnumerable`1 keepFileNames)
   at Microsoft.VisualStudio.TextTemplatingD9DBF81DBE6910168857B3C0602ECA5B.GeneratedTextTransformation.EntityFrameworkTemplateFileManager.VsEntityFrameworkTemplateFileManager.&lt;.ctor&gt;b__39(IEnumerable`1 keepFileNames)
   at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]&amp; outArgs)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)

Exception rethrown at [0]: 
   at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message reqMsg, Boolean bProxyCase)
   at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object NotUsed, MessageData&amp; msgData)
   at System.Action`1.EndInvoke(IAsyncResult result)
   at Microsoft.VisualStudio.TextTemplatingD9DBF81DBE6910168857B3C0602ECA5B.GeneratedTextTransformation.EntityFrameworkTemplateFileManager.VsEntityFrameworkTemplateFileManager.Process(Boolean split)
   at Microsoft.VisualStudio.TextTemplatingD9DBF81DBE6910168857B3C0602ECA5B.GeneratedTextTransformation.TransformText()
   at Microsoft.VisualStudio.TextTemplating.TransformationRunner.RunTransformation(TemplateProcessingSession session, String source, ITextTemplatingEngineHost host, String&amp; result)		1	1	

I am running in Administrator mode on the VS2010, and I have uninstalled, re-installed and jumped on one foot holding a...well you get the point.

Any ideas?

I am on EF 4.1 (also have tried the 4.2 preview), and DbContext 1.0.1.0, have the MvcScaffolding and T4 templates installed as well.</description><pubDate>2011-10-29T17:06:30</pubDate><guid isPermaLink="false">urn:comment:121</guid></item><item><title>Comment on Automatic Generation of Metadata &amp;quot;Buddy&amp;quot; Classes by james.chambers</title><link>/blog/automatic-generation-of-metadata-buddy-classes#comment-120</link><description>Thanks, Buddy, glad it's helping you out!

How are you tagging the fields?  This version of the scaffolder uses the EDMX to read metadata from. Is it stored in there somewhere?

I had trouble with the ID/Id thing once upon a time, but not running into that right now. Can you try if it's a caps thing (ID versus Id)?  That's not a fix, but if it works...

I prefer and use the same style you're using (PartId), but I'm not sure why it's missing it.

Check to make sure that the PartId field was properly generated on the EDMX; it might not be marked as the key.

Hope this helps some.

Cheers!</description><pubDate>2011-10-17T02:49:45</pubDate><guid isPermaLink="false">urn:comment:120</guid></item><item><title>Comment on Automatic Generation of Metadata &amp;quot;Buddy&amp;quot; Classes by Buddy Stein</title><link>/blog/automatic-generation-of-metadata-buddy-classes#comment-118</link><description>I find I always have to add [Key] to my generated dbcontext partial class, even though my ID names are like PartId.   

Any idea why this happens.</description><pubDate>2011-10-10T16:02:23</pubDate><guid isPermaLink="false">urn:comment:118</guid></item></channel></rss>
