Click here to Skip to main content
15,881,559 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: What to use for a job scheduler for a .net app with plugins for each job Pin
Bohdan Stupak4-Feb-22 4:42
professionalBohdan Stupak4-Feb-22 4:42 
QuestionInitial design question on an ASP.NET Core MVC project. Pin
nstk20-Jan-22 9:21
nstk20-Jan-22 9:21 
I am starting on a project, together with other developers. The customer is a community and wants to have a website where people can apply for a service. According to their family status, the persons are being distinguished into cases, i.e. married, divorced, living together with a partner, widow. For every case there exist some different questions, although most of them are common (like bitrhday place, father name and so on). The technology used is ASP.NET Core MVC.

The one proposition is to make a model, a controller and a view for every family status. The name of the classes should accordingly change, like MarriedModel.cs, MarriedController.cs, or DivorcedModel.cs, DivorcedController.cs etc.

My approach is a more OOP one. Since we have an entity of a Person, this is our model class. Family status, liked married, divorced etc, consists an attribute. The actions should change dynamically passing the attribute parameter into the controller which would control the view appropriate.

I find that this way we avoid redundancy and code copying, which is very bad enginnering. Moreover we have less code in the end. Others say that with the first way we would gain on flexibility in case something changes during developement.

What do you think?
Questionasp.net Pin
Member 1449552218-Jan-22 0:18
Member 1449552218-Jan-22 0:18 
AnswerRe: asp.net Pin
Richard Deeming18-Jan-22 1:44
mveRichard Deeming18-Jan-22 1:44 
QuestionError NETSDK1045 The current .NET SDK does not support targeting .NET Core 2.2 Pin
Member 1547980726-Dec-21 3:52
Member 1547980726-Dec-21 3:52 
AnswerRe: Error NETSDK1045 The current .NET SDK does not support targeting .NET Core 2.2 Pin
OriginalGriff26-Dec-21 3:53
mveOriginalGriff26-Dec-21 3:53 
AnswerRe: Error NETSDK1045 The current .NET SDK does not support targeting .NET Core 2.2 Pin
Mycroft Holmes26-Dec-21 11:45
professionalMycroft Holmes26-Dec-21 11:45 
GeneralRe: Error NETSDK1045 The current .NET SDK does not support targeting .NET Core 2.2 Pin
Member 1547980726-Dec-21 18:21
Member 1547980726-Dec-21 18:21 
QuestionHttps redirection modifies url path Pin
Member 1547511221-Dec-21 1:10
Member 1547511221-Dec-21 1:10 
AnswerRe: Https redirection modifies url path Pin
Richard Deeming4-Jan-22 0:26
mveRichard Deeming4-Jan-22 0:26 
QuestionHow to fill Foreign Key in a relational database when creating a new row? Pin
Alex Dunlop19-Dec-21 7:12
Alex Dunlop19-Dec-21 7:12 
AnswerRe: How to fill Foreign Key in a relational database when creating a new row? Pin
Alex Dunlop19-Dec-21 8:02
Alex Dunlop19-Dec-21 8:02 
QuestionWhere did i get asp.net project in linux with mysql database.? Pin
Tushar Surve 202115-Dec-21 6:11
Tushar Surve 202115-Dec-21 6:11 
AnswerRe: Where did i get asp.net project in linux with mysql database.? Pin
Richard Deeming15-Dec-21 6:22
mveRichard Deeming15-Dec-21 6:22 
GeneralRe: Where did i get asp.net project in linux with mysql database.? Pin
Mycroft Holmes15-Dec-21 13:31
professionalMycroft Holmes15-Dec-21 13:31 
QuestionTwo ReportViewers on the same project Pin
Member 1077312213-Dec-21 1:01
Member 1077312213-Dec-21 1:01 
QuestionRe: Two ReportViewers on the same project Pin
CHill6013-Dec-21 1:09
mveCHill6013-Dec-21 1:09 
QuestionAn unhandled exception occurred while processing the constructor in ASP.NET Core MVC Pin
Alex Dunlop6-Dec-21 7:51
Alex Dunlop6-Dec-21 7:51 
AnswerRe: An unhandled exception occurred while processing the constructor in ASP.NET Core MVC Pin
Richard Deeming6-Dec-21 21:54
mveRichard Deeming6-Dec-21 21:54 
GeneralRe: An unhandled exception occurred while processing the constructor in ASP.NET Core MVC Pin
Alex Dunlop7-Dec-21 7:09
Alex Dunlop7-Dec-21 7:09 
QuestionUse Active Directory for authentication Pin
Joseline Riker2-Dec-21 5:50
Joseline Riker2-Dec-21 5:50 
QuestionIs this data annotation correct for date and time? Pin
Alex Dunlop25-Nov-21 22:26
Alex Dunlop25-Nov-21 22:26 
AnswerRe: Is this data annotation correct for date and time? Pin
Richard MacCutchan26-Nov-21 0:02
mveRichard MacCutchan26-Nov-21 0:02 
GeneralRe: Is this data annotation correct for date and time? Pin
Alex Dunlop26-Nov-21 0:28
Alex Dunlop26-Nov-21 0:28 
GeneralRe: Is this data annotation correct for date and time? Pin
Richard MacCutchan26-Nov-21 0:39
mveRichard MacCutchan26-Nov-21 0:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.