Tagged Questions
4
votes
1answer
110 views
Using static management class to control db transactions through an EF6
I have the class below to manage my specific implementation of a membership system using entity framework 6.1
Is the use of static access correct in this case? as far as I understood that EF context ...
0
votes
0answers
39 views
Adding viewstate based property and implication in future converstion to mvc in asp.net forms project
Suppostedly adding another viewstate based property in user control (riddled with similar properties) incur technical debt in future effort to convert projects to MVC (comment made by one of my ...
2
votes
1answer
2k views
When to use separate DBContext classes?
I know that the DBContext represents a session (Unit-Of-Work and Repository) with the database, however I an unsure as to when I should have a different DBContext. Currently, I have a separate ...
1
vote
2answers
956 views
MVC : Does code to save data is session or cache belongs in controller?
I'm a bit confused if saving the information to session code below, belongs in the controller action as shown below or should it be part of my Model?
I would add that I have other controller methods ...
3
votes
3answers
319 views
How to refactor this property's code?
I have a view model with properties that represent years and months:
...
1
vote
0answers
66 views
ASP.NET MVC - Help needed to Improve the code for Drop-Down Box?
I have created the below drop-down to populate a list of cities.
All works fine, but I would like to know the better ways of doing this please. Also, please let me know if it is possible to create ...
3
votes
1answer
2k views
Creating a list of pairs after splitting the string containing all of the sets
I am working on asp.net/MVC and I need to read a value from my web.config file. Splitting the list into multiple keys is not an option.
...
3
votes
1answer
1k views
12
votes
1answer
2k views
Fluent LinkedIn REST API client interface design
There is a handful of LinkedIn clients written in C# on the NuGet package library, but afaict most only do authentication via LinkedIn. I found a couple which offer a linkedin rest api interface. Of ...
3
votes
2answers
2k views
Old-way of asynchronous programming in ASP.NET MVC 3
On ASP.NET MVC, I try to write an async Controller action with the old asynchronous programming model (actually, it is the current one, new one is still a CTP).
Here, I am trying to run 4 operations ...
3
votes
2answers
1k views
ASP.NET MVC using Repository pattern - code review
I am just trying to use ASP.NET MVC using repository pattern. Could somebody see If I am doing something wrong here.
Model - Contains the model
...
5
votes
2answers
1k views
trying to optimize conditional string building
Essentially I'm taking a number of checkboxes off of my view, adding them to a Dictionary<string, bool>, and writing out the ...
1
vote
1answer
692 views
Use of Ninject and an injectable DataLayer in MVC3
I'm trying to make an MVC3 application with an exchangeable data layer and below is the code I have currently. In a single file (Global.asax.cs) for brievity.
It seems to be working as I want but as ...
10
votes
2answers
699 views
Advice regarding “pluggable” routes in asp.net mvc
How do I handle multi-tenancy with routes in ASP.NET MVC?
The application is a multitenant ASP.NET MVC 3 application. Tenants are identified based on hostname so this does not interfere with routing.
...