Questions tagged [scaffolding]

Scaffolding is a meta-programming method of building database-backend software applications.

Filter by
Sorted by
Tagged with
1vote
1answer
14views

Altering the current outcome of the model of a generated scaffold

I aim to make some turbo additions to the current scaffold generator. For that i need the plural_model_name in the model. I am looking for a way to alter the output model, generated by the rails g ...
user avatar
0votes
1answer
32views

Is there a way to scaffold a Web API controller from a Model/Class that is NOT an EntityFramework entity

I'm using .Net Core 6 and Visual Studio 2022 community edition VS has these scaffolded item options for WebApi The selected option produces CRUD skeleton for int id, string value but If I already ...
user avatar
0votes
0answers
14views

Scaffold-DbContext generates wrong type

I've got an .Net6 Web API project for which the model (database first) was generated via Scaffold-DbContext from an Oracle database. Oracle contains columns with Number(4) type which was generated to ...
user avatar
  • 1,365
0votes
0answers
14views

Installation failed, reverting ./composer.json and ./composer.lock to their original content. laravel version 7 [duplicate]

I try running the composer require laravel/ui:^2.4 but i run on some issue Problem 1 - symfony/deprecation-contracts v3.0.0 requires php >=8.0.2 -> your php version (7.4.3; overridden via ...
user avatar
  • 1
0votes
1answer
70views

How to generate Blazor wasm scaffolded CRUD (EF) wiht ASP.NET Core Hosted

I'm looking how to create scaffolded blazor components. I'm already know how to create it on a blazor server app, and I want to do the same on a wasm application, but can find the way. My blazor wasm ...
user avatar
  • 2,019
0votes
0answers
14views

How to add a rails scaffold to a json rest api

I have a json rest api without a UI. I was wondering if I could add a rails scaffold to my existing api without interfering with the rest of my api. In essence I just want to add the views part for a ...
user avatar
0votes
0answers
38views

EntityFrameworkCore - DbFirst - Map two tables with same structure to single object

I'm using EntityFrameworkCore6 with database-first approach in my C# project. I have two tables with same structure (one for current status, one for history status); let's simplify with: CREATE TABLE [...
user avatar
0votes
0answers
30views

EF scaffolding MS SQL Views

does someone know a way to stop EF, generating this entity.HasNoKey(); line of code on views when the Scaffold-DbContext command is used. My first thought on this was to just add a primary key to the ...
user avatar
  • 215
0votes
1answer
80views

EF Core : how to re-scaffold without losing custom changes?

There is a WPF application that is currently transitioning from Entity Framework 6 to Entity Framework Core 5 (database provider is Oracle, the application uses .NET 5 so EF Core 6 isn't possible ...
user avatar
  • 140
0votes
1answer
42views

Scaffolding existing database to my application I get this error: Format of the initialization string does not conform to specification starting

I am trying to do an scaffold from my existing database to my application. I am using Blazor Server 6.0 My database is hosted in Azure The string connection that I am using on my application I got it ...
user avatar
0votes
1answer
63views

Entity Framework 5 Scaffold - EntityTypeConfiguration

I am using Entity Framework 5.x.x to Scaffold-DbContext an existing SQL Server hosted database. The database contains about 300 tables. I would like the scaffolding to generate separate Fluent API ...
user avatar
0votes
1answer
44views

General usage approach for EntityFrameworkCore DatabaseFirst by not scaffolding in C#.NET

I would like to deliver a C#.NET Core 6 application using EntityFrameworkCore 6 (EF6.Core) to a remote user, while the main intention of the application is to browse the entire MySQL server after ...
user avatar
  • 11
0votes
1answer
49views

EF Core / AutoMapper - How to map related data when there is no corresponding collection in the scaffolded classes?

I have a SQL Server database where a custom approach was used to allow storing translations of specific columns for different languages. It works by the "main" table for an entity only ...
user avatar
  • 442
0votes
1answer
38views

Can't add view using scaffolding . "There was an errror running the selected generator: Unable to resolve the service for type.."

I can't create a razor view using scaffolding. My project is an ASP.NET Core Web App MVC using net6.0 . I also use VS2022. This is the error that I get: Scaffolding Error I tried to restart my vs but ...
user avatar
3votes
1answer
73views

How to (auto)-configure repository/project scaffold Azure DevOps/GitHub?

This is what I want to do, as soon as someone in your org create a repository in Azure DevOps (or GitHub), a defined project scaffold/structure is build for them. For example, a fresh repo (my_proj) ...
user avatar
  • 277
0votes
0answers
15views

Grails 5.0.1 - How to put <%@ page import= ... %> tag into a scaffolding template

I create a scaffolding template called _formEdit.gsp into the directory "myproject"\src\main\templates\scaffolding This template is rederized from the edit.gsp template as follows: ... <...
user avatar
0votes
1answer
21views

Grails 5.0.1 - Customizing scaffolding edit.gsp template and others

There is very little reference on how to customize the editing and presentation forms embeded in the templates pages generated by the install-templates command. I found references about _list.gsp and ...
user avatar
0votes
0answers
28views

Grails 5.0.1 - How to getting the domain transient properties

How to getting the grails domain transient properties? I need a class like org.grails.orm.hibernate.cfg.HibernatePersistentEntity but that give all the properties of the domain - not only the ...
user avatar
0votes
0answers
22views

Grails 5.0.1 generate-all generates only artifacts for the first domain

In my grails 5.0.1 instalation, the command generate-all is generating only the artifacts to the first domain. The command: grails generate-all business* --force See below the domains list. Only the ...
user avatar
0votes
1answer
27views

Yeoman copy directory with templating

How can I copy multiple files in a whole folder recursively while applying templating ? I found answers for copying folders without templating, templating individual files but not batch templating. I ...
user avatar
  • 21
1vote
0answers
164views

When I try to scaffold in ASP.NET I get the error: Unable to resolve service for type 'Microsoft.EntityFrameworkCore.DbContextOptions'?

The full error is: Unable to create an object of type 'UserDbContext'. For the different patterns supported at design time, see https://go.microsoft.com/fwlink/?linkid=851728 StackTrace: Unable to ...
user avatar
0votes
0answers
23views

EntityFramework, problems to create entity with composit key

I have a database first project and the context/entities are automatically generated with Scaffold-DbContext. One table (Region_User) in the database is a cross reference table between User and Region,...
user avatar
0votes
0answers
31views

How to "forze" pluralize in EF Core Scaffold-Dbcontext

When scaffolding an existing DB Model there are several table names that end with an s. Like SaleOrderPos beeing pos short for position. I want to pluralize the DBSet but keep intanct the original ...
user avatar
2votes
0answers
385views

C# - There was an error running selected code generator: Could not get the reflection type for DbContext

When scaffolding a controller in Visual Studio 2019 ASP.NET Core 5 MVC web app, I get the following error: There was an error running selected code generator: Could not get the reflection type for ...
user avatar
0votes
0answers
156views

EF 5 Core add class name prefix in scaffold-dbcontext

It is possible in EF 5 Core to add custom prefix to class name when I'm using Scaffold-DBcontext? For example in my DB I have table OPERATOR, after use Scaffold I want have class with name pfxOperator....
user avatar
  • 5
1vote
0answers
160views

Scaffold Views with Scaffold-DbContext from SQL Server

I have tried to scaffold two views from a database in a SQL Server. Code in .Net 5.0. Scaffold-DbContext "conn-string" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Entities -...
user avatar
1vote
2answers
329views

How can I get connectionstring from appsetting using ConfigurationManager?

I created a asp.net core web api project that has Microsoft.EntityFrameworkCore.SqlServer, Microsoft.EntityFrameworkCore.Tools, and System.Configuration.ConfigurationManager. I ran the Scaffolding ...
user avatar
  • 386
0votes
0answers
90views

ASP.Net Core 5 Web API scaffolding controller with EF failed. "Rolling back package changes"

I am trying to scaffold out the 3rd controller in an API I am making. The other 2 worked fine, however now I'm getting the error: "Package restore failed. Rolling back package changes for '...
user avatar
0votes
1answer
107views

Change CRUD Scaffolder (Scaffolding) in Visual Studio 2019

I am using Visual Studio 2019, with .NET Framework 4.8, creating ASP.NET MVC 5 software (not Core). I would like to use the CRUD Scaffolder from an older version of Visual Studio (e.g. 2017 or 2015). ...
user avatar
  • 214
0votes
1answer
72views

Is it possible to manually select features when scaffolding using vite like the vue/cli does?

Like in Vue CLI - I would like to have a way to select features manually when scaffolding with vite. Is that Possible. I scanned through the vite documentation and couldn't find anything like that. ...
user avatar
  • 3
0votes
0answers
249views

How to manage user secrets in .NET Core Console Application for EF Scaffolding?

I'm making a .NET Core console application using VS 2019. I use EF Scaffolding using de NuGet console. In a MVC project I use the following command: Scaffold-DbContext Name=ConnectionStrings:...
user avatar
0votes
0answers
45views

Microsoft.EntityFrameworkCore.SqlServer Scaffold-DbContext Skipping column Error

This the error that i have when i run this command : Scaffold-DbContext "Server=XXX;Database=xxx;User Id= xx; Password=xxx" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models Could ...
user avatar
1vote
4answers
297views

How to access and change a variable from a different file in flutter

I am trying to access and change a variable from a differant file in flutter. basically, I have created a file called ```colors.dart``` where I'll save the data on the colors that will be used in ...
user avatar
0votes
0answers
135views

Modify automatically generated properties from .net core Entity Framework Scaffold

Our goal To be able to use a tool that generates automatically all the models from our DB (MySQL) with Null Safety enabled (Nullable Reference Types) and that lets us modify some properties' types and ...
user avatar
  • 75
-1votes
1answer
71views

Is there a way to fix adding user roles in ASP.NET Identity MVC5? Cannot add roles

I have been following a tutorial lately, and I am in the phase of add a new role for users. I would like to add a new role, but the problem is nothing happens after I submitted or added a role. The ...
user avatar
1vote
1answer
435views

EF Scaffold-DbContext - Login failed for user ' '. (empty ' ')

I'm trying to use Scaffold-DbContext but I got error: Scaffold-DbContext 'Data Source=serverName;Initial Catalog=Test Trusted_Connection=True' Microsoft.EntityFrameworkCore.SqlServer Connection ...
user avatar
  • 119
1vote
1answer
299views

Ruby on Rails - rails g scaffold foreign key

Im new to ruby and I want ot create database with table User, Role and user Role. And my question is should I use scaffold or something else? And how to add autoincrement id in this tables? And how to ...
user avatar
  • 79
0votes
1answer
57views

SOLVED - How can I use scaffolding in ASP.NET Core MVC ? I get an error

I was following an ASP.NET MVC tutorial and in the section that he used scaffolding to make controller and views, I got an error. I searched but I couldn't figure out how to solve it. It's the error ...
user avatar
0votes
1answer
190views

.NET Core EF Scaffolding throws unable to find provider assembly 'Source=localhost'

I'm using core 3 and I have included below packages to my project "Microsoft.EntityFrameworkCore.Design": "5.0.7", "Microsoft.EntityFrameworkCore.SqlServer": "5.0.7&...
user avatar
  • 83
0votes
0answers
87views

EFCore Scaffolding: there are any way to skip HasComment generation?

I would like to avoid generating the useless (for me) HasComment methods in the body of OnModelCreating, but I couldn't find a way to do it while scaffolding. Some idea?
user avatar
  • 527
1vote
2answers
1kviews

How to fix "Only one column per table can be configured as 'Identity'. Call 'ValueGeneratedNever' ... in Ef Core and Oracle

I have an Oracle Database. I tried to Scaffold my data model into my .net core 5 project using EF Core which has been done successfully, but when I try to Get a list from I get this Error: Only one ...
user avatar
1vote
2answers
57views

In Silverstripe, how can I automate the CMS field creation for Pages like it works in DataObjects?

In DataObjects, the getCMSFields method creates all the appropriate CMS Fields automatically (it is called scaffolding). However, in classes that extend SiteTree (i.e. Pages) this does not happen. How ...
user avatar
0votes
1answer
57views

Grails scaffolding does show nothing

I use grails 2.4.4 I added dependenci in my BuildConfig: dependencies { test "org.grails:grails-datastore-test-support:1.0.2-grails-2.4" compile "org.grails.plugins:scaffolding:...
user avatar
  • 154
0votes
1answer
88views

JSONB Column not mapping to JsonDocuent property type when scaffolding db

I cannot find any information for scaffolding a table which has a a JSONB column which should map to JsonDocument type property but instead maps to a string. It is not an easily maintainable solution ...
user avatar
  • 158
0votes
0answers
19views

Magento PWA graphql Issue

I run Scaffolding magento pwa project ,I was at first runing the project using there backend url default backend url MAGENTO_BACKEND_URL=https://master-7rqtwti-mfwmkrjfqvbjk.us-4.magentosite.cloud/ ...
user avatar
0votes
1answer
29views

Generated model classes does not contain referenced objects

I am trying to use scaffolding to make a database-first application but have run into a problem. Using the database as specified here: CREATE TABLE Group ( Id UNIQUEIDENTIFIER NOT NULL PRIMARY KEY,...
user avatar
  • 408
0votes
0answers
995views

There was a problem running the selected code generator : 'Package restore Failed'

Some weeks before i encountered similar problem of scaffolding error and got the solution. What am i trying is controllers>add>new scaffolded item >MVC controller with views , using entity ...
user avatar
0votes
1answer
120views

textfield opens keyboard flutter scaffold

As you can see from the video I posted, I have a constraint problem regarding the textfield below. once I press, the keyboard opens but it overlaps and ruins the whole view. how can I solve and manage ...
user avatar
  • 11
2votes
1answer
302views

Python Django Projects scaffolding boilerplate automation

I have django-cms project and i will use it as boilerplate, like when i got a project, i just run a command, it should generate initial setup/copy existing project with different name and changing ...
user avatar
0votes
0answers
75views

How to change Datatype Entity after generate by scaffold in c#?

I use SQLite with EF for connected database by using Microsoft.EntityFrameworkCore.Sqlite and i have a table 'StuffOrder' have a column 'OrderDate' this daatype in database schema 'DATETIME' but when ...
user avatar

15 30 50 per page
1
2 3 4 5
21