Triufelis
✅ Authentication documentation
As the title states im looking for good documentation or examples how to properly implement user authentication and verification. I'm writing an application in blazor and i have also written an api that eill be consumed by the blazor project. Im just looking for good examples of proper authentication or documentation. I have been having difficulty finding anything that would fit my needs.
2 replies
✅ Blazor vs Razor Pages
Hello lovers of C#,
I have a passion project that is basically a recipe manager.
At the moment i'm using Razor Pages. But now the problem is that i want to add some functionality that to my understanding is not possible in Razor Pages without the help of JS(which i don't know)
Basically i want to add a button that adds a new input field with a dropdown list. You can type in the product name, select neasurement from the dropdownlist and type in the amount. To my understanding and from what i have read Razor Pages doesn't quote have the capabilities for that without JS.
I know thay blazor is different, because you can write more complex front end only uaing C#.
My question would be. Should i switch to Blazor? Or should i stay with Razor Pages and learn JS?
24 replies
✅ gaps in database keys
I don't know if this is the best place to post it as it is more related to databases. However.
I am currently learning Razor Pages, and trying to work with databases for the first time. I went with PostgreSQL. I did all the CRUD operations. And i went with the auto-incrementing property on my key, so the database deals with it. However if i delete elements the key value doesn't reset and there are gaps.
My first question would be. Are these gaps in the key values acceptable or should i deal with them somehow?
My second question is. PostgreSQL offers the ability tu TRUNCATE the data. Which resets the key values and starts from 1 again. Would it be a wise thing to do if i truncate it if the database is empty so the values start back from one?
Basically, to put it in short. Do i do anything about the gaps in the database key values or just leave as is?
7 replies
✅ Printing abstract classes
I have an abstract class and two classes that inherit from it. Let's say the abstract one is Animal and the two other are cat and dog. they all have some parameters that are the same, but some are different. I store both of them in an Animals container class(combined into one). I need to figure out how to print the animal with all its data depending on the class that inherited the animal class.
2 replies