Perhaps not used too much but it’s very usefull to know. I had to implement data validation on several occasions outside of asp dotnet context.Read more
Perhaps not used too much but it’s very usefull to know. I had to implement data validation on several occasions outside of asp dotnet context.Read more
The Microsoft team provides a pretty good library (with minor issues which I will discuss in other posts) for managing users and authentication. AspIdentity is very configurable and it meets most demands for small and large applications. You can use the built in method to add an Identity and this adds all the dependencies andRead more
I am spending time these days to analyze and understand some implementation details that drive the identity for ASP. And one particular implementation really caught my mind, I am not saying it’s right or wrong, but it’s something to be aware of: The UserStore and the UserOnlyStore give you all the functionality you need forRead more
A less known yet usefull component in dotnet is the TypeConverter component. This component provides means to convert between data types. If you are wondering which data types are by default supported, just take a look under the hoodRead more
In my path to understand the magic behind the frameworks because without knowing we are just playing blank, I have tried to follow the trail of the sign in method that Identity uses when signing in. Note that the official repo of the asp is on https://github.com/dotnet/aspnetcore. First step is to open the Identity projectRead more
In my previous article Parameters in RevitApi I used the get_Parameter method which is obsolete since RevitAPI 2015. I am referrencing Revit2018 and the methods are not removed, maybe there are still present for compatibility reasons or maybe they plan to remove the in the future: In the documentation now we have LookupParameter but thisRead more
Getting parameters in RevitAPI is a challenging task. I have had some serious headaches trying to wrap my head around the what, where and huh of the parameters. Maybe it’s because of the lack of proper documentation from Autodesk. I mean, I get it, they have a list of ALL MEMBERS, well…pff, it’s not alwaysRead more
Click to download the source file Yet another article about MONGO! This article is about retrieving data in mongo and tweaking the retrieval method to accommodate some project requirements. I am not an expert in working with Expression trees, but some methods are quite easy to use and provide a great deal of flexibility inRead more
When we want to configure the identity server, we can start from the quickstart template and make the changes there. This quickstart provides all the interactions that we need, and sometimes more then we need. But we need to inject our data and this usually comes from the database. You can get the quickstart fromRead more
With mongo some operations will return a dynamic object, usually wrapped in an expando object. To deserialize the expando object in the target class is quite simple, I actually looked in the source code to see how the driver performs this operation. If you look at the test involving the dynamic type here (https://github.com/mongodb/mongo-csharp-driver/blob/b473de06f9bf3587b3a00f52ba2678d9aed71d74/tests/MongoDB.Bson.Tests/Serialization/Serializers/ObjectSerializerTests.cs) youRead more