Is this bunk?

Oct 25, 2011 at 10:25 PM
Edited Oct 27, 2011 at 3:02 PM

Can't get this to work...at all. What's going on here?

 

 

 

 

 

 

Get-PrimaryKey : Cannot find primary key property for type 'WebApplication4.Contacts'. No properties appear to be primary keys.

At c:\users\bill\documents\visual studio 2010\Projects\WebApiService\packages\ServiceScaffolder.0.4\tools\CodeTemplates\Scaffolders\RestfulSe

rvice\RestfulService.ps1:20 char:29

+ $primaryKey = Get-PrimaryKey <<<< $foundModelType.FullName -Project $Project -ErrorIfNotFound

+ CategoryInfo : NotSpecified: (:) [Get-PrimaryKey], Exception

+ FullyQualifiedErrorId : T4Scaffolding.Cmdlets.GetPrimaryKeyCmdlet

 [edit] nevermind - need Id field. duh. :-)

Coordinator
Nov 22, 2011 at 12:35 PM

I guess you missed the ID property in your model class.