Questions tagged [.net-core]
.NET Core is a lean, composable and cross-platform framework for building web and cloud applications. It is fully open source and available on GitHub (https://github.com/dotnet/core). Applications in .NET Core can be run and/or hosted on Linux and MacOS under .NET Core.
92
questions
6
votes
2
answers
4k
views
Should AutoMapper be used to Map from ViewModel back into Model?
Should AutoMapper be used to take data from ViewModel and save back into a database model?
I know the opposite practice is good software practice: to have Automapper to extract database models, and ...
2
votes
1
answer
2k
views
Will (await method).ToList() block the thread? [closed]
I'm using a lot of async Task<IEnumerable<T>> methods and I want to stop doing this everytime to get the items as a list:
var items = await AsyncMethodThatReturnsEnumerable();
var ...
1
vote
1
answer
95
views
Am I making API creation difficult when it comes to authentication?
I know the sites are not geared for recommendations so I am hoping to pose this question in a way that doesn't ask for recommendations. Questions comments are welcome.
I am just getting involved in ...
1
vote
3
answers
905
views
Where to apply multi-tenant logic (ASP.Net Core)?
I'm developing a multi-teant SaaS application in ASP.NET core mvc and I was wondering what the general approach is to applying tenant logic in a shared database scenario (TenantId for each entity). ...
0
votes
1
answer
85
views
Load files depending on browser or write workarounds within the file?
I'm writing up this website running under IIS with .NET Core. I developed most of the site with minimal use of JS so that the server will be doing most of the work (and thankfully so because of the ...
9
votes
1
answer
5k
views
Should .NET Core class libraries register their own implementations?
Our team had recently a big struggle of deciding whether it is a good practice or not for the .NET Core class libraries to register their own implementations by the fact of providing a ...
-3
votes
1
answer
96
views
Defer insert data into a database
I need to insert some records into a database at a time when it normally it's not being used, what are some approaches I can take? I have considered using the SQL Server Agent to run some stored ...
-1
votes
2
answers
207
views
If I use .Net Core 2.0 my software must by open software? [closed]
If I use .Net Core 2.0 my software must by 'open software' or what?
Sorry for my English.
5
votes
3
answers
2k
views
Multithreading ( thread per area ) for an MMO server, good idea?
As a personal project, I'm setting up a MMO, and writing the server in C#/.NET Core.
As of now my architecture is as follows: The world exists of different areas ( you can go from area to area trough ...
0
votes
1
answer
578
views
Time-based Task scheduler engine
I am working on an enterprise level application. I have an event table in the database. I need to update my events' states in the database on a precise date and time. There may be 200 milliseconds ...
12
votes
4
answers
9k
views
Should it be a claim, a role or a policy?
The distinction between roles and claims is that roles describe a set of users and claims describe a property of a user. So there can be a role "Administrator", but there can also be a claim "...
5
votes
2
answers
17k
views
Unit Of Work with multiple database context
I have created an application (net core 2 & ef core) with Unit Of Work and Generic repository pattern. I used to have one database context but due to some business logic I had to create a second ...
2
votes
1
answer
95
views
How best to organise a multitargeted VS solution being ported from .net Framework to both .net Framework+Core?
I'm not a native English speaker, and i'm new to .net Core.
I have a task to port the logic of a WPF app to .Net Core while leaving this app working like previously. The app has approximately 70 ...
0
votes
0
answers
85
views
Should I use CQRS in this case?
I'm building web API. I have a problem where input differs from the output, for example, input expects just the id and output returns entire object.
Also, there are few things specific to the output ...
6
votes
1
answer
2k
views
How does a pure P2P node connect to other nodes
I'm working on my first P2P app using C# core and gRPC and I'm finding it difficult to understand the concepts of how nodes find each other and build a routing table.
For my design I'd like to only ...