Is there any framework or components that can scaffold complex types in EF Core/ASP.Net Core?
Using EF, I have quite a few types along the lines of:
public class Person
{
public int PersonID { get; set; }
public string Name { get; set; }
public virtual Address Address{ get; set; }
}
public class Address
{
public int AddressID { get; set; }
public string FirstLine { get; set; }
public string SecondLine{ get; set; }
}
The scaffolding feature is great for building simple Controllers and views, but, I am forever modifying the defaults to add support for numerous complex types, or to support foreign keys.
At the moment, I have built myself something that basically causes a popup and does an AJAX type query, then populates a field. It works - but, it isn't good code and I'm not happy with it.
I've been searching for ages and I've turned a blank other than the old MVCscaffolding project - I was wondering if there are any better scaffolding templates out there or frameworks that can assist with this as it is obviously a very common task and I can't believe I'm alone in needing a better solution here.
c# asp.net-mvc asp.net-core-mvc scaffolding ef-core-2.2
add a comment |
Using EF, I have quite a few types along the lines of:
public class Person
{
public int PersonID { get; set; }
public string Name { get; set; }
public virtual Address Address{ get; set; }
}
public class Address
{
public int AddressID { get; set; }
public string FirstLine { get; set; }
public string SecondLine{ get; set; }
}
The scaffolding feature is great for building simple Controllers and views, but, I am forever modifying the defaults to add support for numerous complex types, or to support foreign keys.
At the moment, I have built myself something that basically causes a popup and does an AJAX type query, then populates a field. It works - but, it isn't good code and I'm not happy with it.
I've been searching for ages and I've turned a blank other than the old MVCscaffolding project - I was wondering if there are any better scaffolding templates out there or frameworks that can assist with this as it is obviously a very common task and I can't believe I'm alone in needing a better solution here.
c# asp.net-mvc asp.net-core-mvc scaffolding ef-core-2.2
What do you specifically mean by scaffolding
– Michael Randall
Jan 3 at 2:24
Database First will auto generate the Entities for you. I guess you are doing Code First.
– Prateek Shrivastava
Jan 3 at 2:38
@TheGeneral - Sorry, I'll update to be clearer - I'm talking about Scaffolding "better" controllers/views... Back in the day, the MvcScaffolding project (archive.codeplex.com/?p=mvcscaffolding) helped and did a bit more than the built in templates, but, it is not core compatible and I can't find any replacement or other projects.
– wil
Jan 3 at 2:41
That Codeplex project has been moved to GitHub and updated to run with Visual Studio 2013+ github.com/processedbeets/ASP.NET-MVC-Scaffolding
– Chris
Jan 3 at 3:16
add a comment |
Using EF, I have quite a few types along the lines of:
public class Person
{
public int PersonID { get; set; }
public string Name { get; set; }
public virtual Address Address{ get; set; }
}
public class Address
{
public int AddressID { get; set; }
public string FirstLine { get; set; }
public string SecondLine{ get; set; }
}
The scaffolding feature is great for building simple Controllers and views, but, I am forever modifying the defaults to add support for numerous complex types, or to support foreign keys.
At the moment, I have built myself something that basically causes a popup and does an AJAX type query, then populates a field. It works - but, it isn't good code and I'm not happy with it.
I've been searching for ages and I've turned a blank other than the old MVCscaffolding project - I was wondering if there are any better scaffolding templates out there or frameworks that can assist with this as it is obviously a very common task and I can't believe I'm alone in needing a better solution here.
c# asp.net-mvc asp.net-core-mvc scaffolding ef-core-2.2
Using EF, I have quite a few types along the lines of:
public class Person
{
public int PersonID { get; set; }
public string Name { get; set; }
public virtual Address Address{ get; set; }
}
public class Address
{
public int AddressID { get; set; }
public string FirstLine { get; set; }
public string SecondLine{ get; set; }
}
The scaffolding feature is great for building simple Controllers and views, but, I am forever modifying the defaults to add support for numerous complex types, or to support foreign keys.
At the moment, I have built myself something that basically causes a popup and does an AJAX type query, then populates a field. It works - but, it isn't good code and I'm not happy with it.
I've been searching for ages and I've turned a blank other than the old MVCscaffolding project - I was wondering if there are any better scaffolding templates out there or frameworks that can assist with this as it is obviously a very common task and I can't believe I'm alone in needing a better solution here.
c# asp.net-mvc asp.net-core-mvc scaffolding ef-core-2.2
c# asp.net-mvc asp.net-core-mvc scaffolding ef-core-2.2
edited Jan 3 at 2:42
wil
asked Jan 3 at 2:15
wilwil
7111712
7111712
What do you specifically mean by scaffolding
– Michael Randall
Jan 3 at 2:24
Database First will auto generate the Entities for you. I guess you are doing Code First.
– Prateek Shrivastava
Jan 3 at 2:38
@TheGeneral - Sorry, I'll update to be clearer - I'm talking about Scaffolding "better" controllers/views... Back in the day, the MvcScaffolding project (archive.codeplex.com/?p=mvcscaffolding) helped and did a bit more than the built in templates, but, it is not core compatible and I can't find any replacement or other projects.
– wil
Jan 3 at 2:41
That Codeplex project has been moved to GitHub and updated to run with Visual Studio 2013+ github.com/processedbeets/ASP.NET-MVC-Scaffolding
– Chris
Jan 3 at 3:16
add a comment |
What do you specifically mean by scaffolding
– Michael Randall
Jan 3 at 2:24
Database First will auto generate the Entities for you. I guess you are doing Code First.
– Prateek Shrivastava
Jan 3 at 2:38
@TheGeneral - Sorry, I'll update to be clearer - I'm talking about Scaffolding "better" controllers/views... Back in the day, the MvcScaffolding project (archive.codeplex.com/?p=mvcscaffolding) helped and did a bit more than the built in templates, but, it is not core compatible and I can't find any replacement or other projects.
– wil
Jan 3 at 2:41
That Codeplex project has been moved to GitHub and updated to run with Visual Studio 2013+ github.com/processedbeets/ASP.NET-MVC-Scaffolding
– Chris
Jan 3 at 3:16
What do you specifically mean by scaffolding
– Michael Randall
Jan 3 at 2:24
What do you specifically mean by scaffolding
– Michael Randall
Jan 3 at 2:24
Database First will auto generate the Entities for you. I guess you are doing Code First.
– Prateek Shrivastava
Jan 3 at 2:38
Database First will auto generate the Entities for you. I guess you are doing Code First.
– Prateek Shrivastava
Jan 3 at 2:38
@TheGeneral - Sorry, I'll update to be clearer - I'm talking about Scaffolding "better" controllers/views... Back in the day, the MvcScaffolding project (archive.codeplex.com/?p=mvcscaffolding) helped and did a bit more than the built in templates, but, it is not core compatible and I can't find any replacement or other projects.
– wil
Jan 3 at 2:41
@TheGeneral - Sorry, I'll update to be clearer - I'm talking about Scaffolding "better" controllers/views... Back in the day, the MvcScaffolding project (archive.codeplex.com/?p=mvcscaffolding) helped and did a bit more than the built in templates, but, it is not core compatible and I can't find any replacement or other projects.
– wil
Jan 3 at 2:41
That Codeplex project has been moved to GitHub and updated to run with Visual Studio 2013+ github.com/processedbeets/ASP.NET-MVC-Scaffolding
– Chris
Jan 3 at 3:16
That Codeplex project has been moved to GitHub and updated to run with Visual Studio 2013+ github.com/processedbeets/ASP.NET-MVC-Scaffolding
– Chris
Jan 3 at 3:16
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54015517%2fis-there-any-framework-or-components-that-can-scaffold-complex-types-in-ef-core%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54015517%2fis-there-any-framework-or-components-that-can-scaffold-complex-types-in-ef-core%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
What do you specifically mean by scaffolding
– Michael Randall
Jan 3 at 2:24
Database First will auto generate the Entities for you. I guess you are doing Code First.
– Prateek Shrivastava
Jan 3 at 2:38
@TheGeneral - Sorry, I'll update to be clearer - I'm talking about Scaffolding "better" controllers/views... Back in the day, the MvcScaffolding project (archive.codeplex.com/?p=mvcscaffolding) helped and did a bit more than the built in templates, but, it is not core compatible and I can't find any replacement or other projects.
– wil
Jan 3 at 2:41
That Codeplex project has been moved to GitHub and updated to run with Visual Studio 2013+ github.com/processedbeets/ASP.NET-MVC-Scaffolding
– Chris
Jan 3 at 3:16