Questions tagged [t4scaffolding]

templated Controller creation using generated Data Models

templated Controller creation using generated Data Models

45 questions
1
vote
1 answer

T4 Scaffolding - How to detect Nullable Types

I am trying to generate a Class by loading another Class as model, here is the class\model i am using using System; using System.Text; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace Sma.Domain.Model { …
Moon
  • 19,518
  • 56
  • 138
  • 200
0
votes
0 answers

Grails 5.1.3 Could not resolve view with name 'list' in servlet with name 'grailsDispatcherServlet' with scaffold

After working on upgrading to Grails 5, the scaffold setup doesn't seem to be working with the error Could not resolve view with name 'list' in servlet with name 'grailsDispatcherServlet' GSP file
0
votes
1 answer

How do I add a namespace to my T4 Scaffolders?

When I run Get-Scaffolder in my Package Manager Console, I get the following output: Name Description …
Richard C
  • 2,176
  • 5
  • 30
  • 40
0
votes
1 answer

Why is my T4 Scaffolding failing without error?

I'm using ASP.NET MVC to build an application. The scaffolding is failing, but is not showing me any output as to why it is failing. PM> get-scaffolder Name Description …
0
votes
1 answer

Bootstrap datetimepicker with asp .net scaffolding

I have simple model class with DateTime property. [Required] [DataType(DataType.DateTime)] public DateTime When { get; set; } Currently Visual Studio Scaffolding generate this:
@Html.LabelFor(model…
Szczepan
  • 365
  • 1
  • 6
  • 19
0
votes
2 answers

Error on executing T4 scaffolfing from EF6 model to views/controller in MVC 6 / DNX project (.xproj)

There is of course no such option as using customizable scaffolding from EF6 model to views/controller in DNX project's in newest MVC 6. But I've tried to use the PM console command Scaffold (aka Invoke-Scaffolder, from…
0
votes
1 answer

How to create custom MvcView scaffold that considers EF's DatabaseGenerated attribute

Yes, I have a project where I'm using my EF 6.x entities as if they were also my ViewModels - no AutoMap for me - I've studied and understand the risks. My database has a lot of natural keys. In my Code First POCOs, I have properties that look like…
bkwdesign
  • 1,953
  • 2
  • 28
  • 50
0
votes
0 answers

T4Scaffolding assembly MSBuild variables not resolving

I have an open source project where I am having to instruct users to place a dll in c:\NPEG.dll…
Leblanc Meneses
  • 3,001
  • 1
  • 23
  • 26
0
votes
2 answers

MVC 4 with EF6 on Visual Studio 2013 Scaffolding Error

I have just started using Visual Studio 2013 with EF6 and I have created a demo application with MVC 4. I tried to scaffold a controller but i keep getting an error. I have installed MVCScaffolding from the Package Manager Console and everything…
0
votes
1 answer

T4 PowerShell Array Serialization Error

I am using T4Scaffolding to create a custom scaffold. I use the following PS code to get a list of all domain objects in my project: # List of all domain classes. Get all top level files/folders in the project | drill down to Models folder |…
0
votes
1 answer

Adding Static Files To Project By T4Scaffolding

I am generating an CMS by using T4Scaffolder and all the CS files are being generated successfully. But also I want to add some css and png files to the project. What is the best way to add static files to MVC Web Application with a powershell…
Barış Velioğlu
  • 5,709
  • 15
  • 59
  • 105
0
votes
1 answer

T4Scaffolding - get list of files from a directory

usually what we do is for scaffolding we specify a model, the thing is i have more than hundred models, i want to get list of all the files from a namespace.project directory and run scaffolding against all of them. I am using template in ps1 script…
Moon
  • 19,518
  • 56
  • 138
  • 200
0
votes
1 answer

'DynamicTransform' could not be found while generating a CustomScaffolder by T4Scaffolding

I am trying to use T4Scaffolding for my current project but it fails at the beginning. I do step by step same process on this link that teaches how to use T4Scaffolding for a basic console application. Steps that I did 1- I created a new console…
Barış Velioğlu
  • 5,709
  • 15
  • 59
  • 105
0
votes
1 answer

T4Scaffolding access generic collection T properties

Given the following class: public class Post { public Post() { Tags = new List(); } public int Id { get; set; } // ...more properties... public virtual ICollection Tags { get; set; } } and my ps1 entry…
Leblanc Meneses
  • 3,001
  • 1
  • 23
  • 26
0
votes
1 answer

Creating reusable scaffolders

I followed the instructions on creating a custom scaffolder using the T4 Scaffolding package and they worked great. However, in the process I found out that I need to build a lot of reusable components that will be shared across multiple scaffolders…
Alfero Chingono
  • 2,663
  • 3
  • 33
  • 54
1 2
3