views:

85

answers:

0

Hi,

I'm using EF4 and Model-first-approach. I noticed that the default inheritance strategy is TPT (Table per type). I wasn't satisfied with the performance, so I would like to try TPH instead, but there doesn't seem to be any support for this in the standard Entity Designer(?). I was happy to find the "Entity Designer Database Generation Power Pack" supporting TPH-strategy for inheritance, but unfortunately I get an error when running the "Generate T-SQL Via T4 (TPH)"-workflow (and DDL Generation set to "Template CSDLToSSDL_TPH.tt (VS)":

Encountered the following errors while processing the template 'c:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft\Entity Framework Tools\DBGen\CSDLToSSDL_TPH.tt: Line 0, Column 0: 'Running transformation: System.ArgumentNullException: Value cannot be null. Parameter name: s at System.IO.StringReader..ctor(String s) at Microsoft.Data.Entity.Design.DatabaseGeneration.EdmExtension.CreateAndValidateEdmItemCollection(String csdl, Version targetFrameworkVersion) at Microsoft.VisualStudio.TextTemplating36608944B036B6D7D1179B7845A07B77.GeneratedTextTransformation.TransformText() in c:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft\Entity Framework Tools\DBGen\CSDLToSSDL_TPH.tt:line 341 at Microsoft.VisualStudio.TextTemplating.TransformationRunner.RunTransformation(TemplateProcessingSession session, String source, ITextTemplatingEngineHost host, String& result)'

Any idea? I'm using the RTM-version of VS2010 (10.0.30319.1 RTMRel) and version 1.1 of the Power Pack.

Best regards /Valle