Questions tagged [t4scaffolding]

templated Controller creation using generated Data Models

templated Controller creation using generated Data Models

45 questions
34
votes
1 answer

ASP.NET MVCScaffolding is very slow

We try to use ASP.NET MVC Scaffolding ( http://blog.stevensanderson.com/2011/01/13/scaffold-your-aspnet-mvc-3-project-with-the-mvcscaffolding-package , http://mvcscaffolding.codeplex.com/). Great tool, but please any advice why is it so slow? The…
15
votes
5 answers

Scaffolding controllers with repositories in Mvc5, EF6, VisualStudio 2013

In vs2012 I used to use Steve Sanderson's mvcScaffolding Package with this package I could scaffold Action Methods with unit tests and controllers with repositories and dependency injection. My question is simple. Is there a way to do so in…
13
votes
1 answer

ASP.NET MVC 5 Custom Scaffolding Option [t4 templates]

Currently , I am developing a framework , I want to add custom scaffolding option in visual studio menu. By default "MVC5 Controller with views, using Entity Framework" option 3 from the dialog box chooses…
10
votes
1 answer

T4 Scaffolding not working with visual studio 2015

I have created a library of T4 scaffolding templates that i've used successfully in previous versions of visual studio, but now having upgraded my projects to VS 2015 I get the following error when opening the "Package Manager…
Nick Ready
  • 143
  • 2
  • 9
7
votes
0 answers

Custom Scaffolding Extension Visual Studio 2019

I'm attempting to create a Custom Scaffold Extension for .NET Framework and Visual Studio 2019. I do not want to overwrite the default MVC T4 templates. I'm trying to do something like:…
7
votes
1 answer

Fails to Scaffolding on project which has a reference to edmx

I have Demo solution with two projects like this : I have installed T4Scaffolding.Install-Package T4Scaffolding I have added a reference of AdventureWorksModel to my RepoLayer Project and install EF6 . Now when i try to run the following command…
Anyname Donotcare
  • 11,113
  • 66
  • 219
  • 392
5
votes
1 answer

Customize T4 Scaffolding With PowerShell

I want to create a Custom Scaffolder that uses arbitrary PowerShell logic. It can render T4 templates (multiple ones if I want), with the result being output: As a new file in your project as a new code block inserted into an existing class my…
4
votes
1 answer

'Must specify an object' on piping variable to Get-Member

How come I can successfully pipe result of a cmdlet to Get-Member, but not through a variable? PM> Get-ProjectFolder "Services" -Project "Foobar" | Get-Member TypeName: System.__ComObject#{8e2f1269-185e-43c7-8899-950ad2769ccf} Name …
Ilya Kozhevnikov
  • 10,242
  • 4
  • 40
  • 70
4
votes
1 answer

Add new Custom T4 template in Add New Controller Dialog under Scaffold options

I want to implement new T4 templates which should appear under Scaffold options in Add New Controller Dialog. I have tried adding a new View tt template.I was able to add it. I need a reference where I can get basic information on how to create a…
Patil
  • 173
  • 1
  • 2
  • 6
3
votes
2 answers

how customizing scaffolding template and change .cs.t4 file in MVC

in MVC when we need a form like below that create a new item of my model, we add a strongly type view on the model with create scaffold template, model: public class book { [Key] public int BId { get; set; } [Display(Name = "نام")] …
mina a.beigi
  • 122
  • 3
  • 13
3
votes
1 answer

Set-DefaultScaffolder : Cannot get an instance of EnvDTE.DTE when debugging T4Scaffolding.Core Nuget package - Advanced Powershell debugging

I am trying to debug T4Scaffolding.Core Nuget package from outside Visual Studio 2012. I am using Powershell ISE with Powershell 3.0 installed and run under CLRVersion 4.0.30319. I first import several Nuget related items: - Profile.ps1 -…
3
votes
2 answers

Error while installing Mvc Scaffolding package using Package Manager Consoler in VS2012

I am new for using Package Manager Console. I need to install Autofac.Mvc3 and MvcScaffolding packages. I tried to install using Package Manager Console by running the below commands. PM> Install-Package Autofac.Mvc3 But I got the below…
2
votes
2 answers

How can I use T4 Custom Scaffolding over projects?

I'm using T4Scaffolding to do some do some C# code generation. Consider the following project structure: I've created a custrom scaffolder in the Templates project. Now I would like to run it for the Dummy project, but I get this exception: How…
Kees C. Bakker
  • 32,294
  • 27
  • 115
  • 203
2
votes
1 answer

How Can I get the model properties using T4 template

I am using T4Scaffolding, and tried to create a custom Scaffold template. It's not asp.net project, not MVC. My user class : public class User { public int Id {get;set;} public string Name {get; set;} } in the .cs.t4 file , I…
nicholapei
  • 53
  • 5
2
votes
0 answers

Prevent scaffolding of certain views in ASP.NET MVC

I have customized the controller and a couple of views using T4 in MVC and no longer need the Details and Delete views. How do I prevent Visual Studio from scaffolding these views out when I scaffold out the controller and other views? Thanks!
1
2 3