Running T4RIA problem

May 11, 2011 at 9:48 AM
Edited May 11, 2011 at 10:37 PM

Hi !

I've tried follow instructions form :http://riaservicescontrib.codeplex.com/wikipage?title=T4RIA%20Documentation, but received an error:

Error 1 Running transformation: Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'System.Dynamic.ExpandoObject' does not contain a definition for 'Mapping'
   at CallSite.Target(Closure , CallSite , Object )
   at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet](CallSite site, T0 arg0)
   at Microsoft.VisualStudio.TextTemplatingB32CD9EDF9B75CFA43D93570F32F93CE.GeneratedTextTransformation.ServiceTemplate.TransformText() in d:\Roboczy\Developer\VisualStudio2010\ISOManager3\ISOManager3.Web\T4RIA.tt:line 66
   at T4Toolbox.Template.Transform()
   at T4Toolbox.Template.Render()
   at T4Toolbox.Template.RenderToFile(String fileName)
   at CallSite.Target(Closure , CallSite , ServiceTemplate , Object )
   at System.Dynamic.UpdateDelegates.UpdateAndExecuteVoid2[T0,T1](CallSite site, T0 arg0, T1 arg1)
   at Microsoft.VisualStudio.TextTemplatingB32CD9EDF9B75CFA43D93570F32F93CE.GeneratedTextTransformation.ServiceGenerator.RunCore() in d:\Roboczy\Developer\VisualStudio2010\ISOManager3\ISOManager3.Web\T4RIA.tt:line 363
   at T4Toolbox.Generator.Run()
   at Microsoft.VisualStudio.TextTemplatingB32CD9EDF9B75CFA43D93570F32F93CE.GeneratedTextTransformation.TransformText() in d:\Roboczy\Developer\VisualStudio2010\ISOManager3\ISOManager3.Web\T4RIA.tt:line 38
   at Microsoft.VisualStudio.TextTemplating.TransformationRunner.RunTransformation(TemplateProcessingSession session, String source, ITextTemplatingEngineHost host, String& result)  1 1 

Actually I need WCF RIA Services Contrib for partial save ( adding one entity during adding/editing other) - could someone describe how to use WCF RIA Services Contrib to do it , from configuring Contrib to usage in clientside app - some kind "for dummies" instruction, pleeeeaaaseeee !

It is very common scenario in business app, I think - adding some entities during editing operation of other entities. In WCF RIA calling SubmitChanges() effects updating whole DataContext, but if there is many changed/added/deleted entities and some of them has validation errors - you are in big trouble, if you want update only correct entities. My only hope is WCF RIA Services Contrib, but I don't know how to use it - help me !

Developer
Jun 25, 2011 at 2:28 AM

Regarding T4RIA, this looks like an issue in the implementation. Would it be possible to obtain the ADO.NET Entity Framework domain model you are using to debug this behaviour (alternatively could you create a minimal model exploiting this issue)?