".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
I havent googled this yet or done any other research, but I will toss it in here because someone may have a quick solution besides LMGTFY.
I have a password reset link which when the user click it will go to Identity server but either to a reset password page, or signal to the login page to render in set password mode. I'm following the published combined quickstart.
The question is, does a feature like that exist or do I need to consider how to craft it myself?
I want to develop a web application with ASP.net and C# in Visual Studio 2019, but I found I have to use razor pages or MVC. Unfortunately, I am not familiar with both technologies or methods, so can I develop without use them in Visual Studio 2019? Thank you so much :)
Hi! I would like to ask for some directions. First of all - I am not a programmer. So, who am I? An ambitious, probably very unknowing person. And I would like to ask for directions.
My idea: I would like to create a very simple website to display a Player Ranking for our weekly board game group. As far as I know, I would need:
- A website
- A database (list of previous games and results) with an option of updating recent scores every week
- “A program” that will search the database for the specific player (there are around 15 gamers in the group, every week there is a different 5-player squad) and calculate their “rank” according to my directions (it has to take into account the recent 20 games of a player, apply certain score depending on the place taken, adjust weight and calculate the average)
What I can do:
- Set up a simple website on Joomla
- Prepare the algorithm in excel that calculates the player ranking
- Read and watch tutorials, spend a lot of time trying to do the stuff myself
One of my API controllers is hitting two databases each on its own context, and I do not want any tables updated until I am satisfied that it is safe.
With that in mind I wrapped the code in a C# transaction scope but when I reached a point where I had to fire scope.dispose, the API call crashed out with a code 500 and any previously executed inserts were not rolled back.
I have successfully applied entity framework core transaction protection to the code block so it is not an issue, but I am curious to know if anyone has tried and succeeded or failed in the same thing.
That pretty much sums it up. Somehow I got it into my head that if I did not have a scope.complete, then I had to have a scope.dispose to ensure that everything got cleaned up. If I had left it out I would probably have achieved the effect I wanted.
All About Transaction Scope here on CP has both a .Rollback and a .Dispose as capable of rollback in section 20. If I had read this instead of one of the shorter articles I would have seen that I had a choice.
Equally it looks like I would have got an automatic dispose (and rollback) just by throwing an exception as needed.
This is the rollback I was referring to (from the CP article):
using (var scope = new TransactionScope())
//either 1 of following lines will use
//if you comment the following line transaction will//automatically be rolled back//scope.Complete();
As of version 2.1, the System.Transactions implementation in .NET Core does not include support for distributed transactions, therefore you cannot use TransactionScope or CommittableTransaction to coordinate transactions across multiple resource managers.
It's not clear whether that limitation also applies to EF Core on .NET Framework, but I suspect it would.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer