![]() ![]() ASP.NET Core: Using Stored Procedures with ADO.NET.Getting the IConfiguration in the Program class - ASP.NET Core 6.Mounting Identity with Database First - ASP.NET Core.Passing a List of Values to a Stored Procedure from C#.Entity Framework Core: Foreign key linked with a non-primary key.Configuring Entity Framework Core with Dynamic Connection Strings - ASP.NET Core.Fixing the error "A possible object cycle was detected" in different versions of ASP.NET Core.Fixing the error “A possible object cycle was detected” in different versions of ASP.NET Core May 19, 2021.Mounting Identity with Database First – ASP.NET Core June 25, 2021.Getting the IConfiguration in the Program class – ASP.NET Core 6 August 19, 2021. ![]() Solving the error: “No packages exist with this id” in Visual Studio September 2, 2021.Passing a List of Values to a Stored Procedure from C# April 20, 2022.Learn how to develop interactive web applications with C# using Blazor: Įnter your email address to follow this blog and receive notifications of new posts by email. If you want to learn more about developing Web APIs with ASP.NET Core, get my course on Udemy today: This can be done by verifying that the user’s token (if you use JWT) contains the proper tenantId. One solution is to create an application-level policy that verifies that the user’s request is valid. You should not simply allow the user to send a tenantId with any value, since this would allow them to access the data of any client. In this way we have configured EF Core with a dynamic connection string. As you can see, after getting the connection string template, we search for the database name which is equal to the value of the tenantId header, then we do the replacement, and finally we configure the DbContext with the connection string. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |