In this article, you’ll discover why lazy loading with Entity Framework is so beneficial and how you can implement it yourself.
Category: ASP.NET
-
C# Convert any value to a boolean
In these examples, I will demonstrate how to convert a string to boolean and an integer to boolean using C#.
You accept a variety of user input that you want to intelligently convert to a valid boolean variable. E.g. string of On = true. No = false.
-
Executing raw SQL queries using Entity Framework Core
Entity Framework Core allows users to execute raw SQL queries directly against the database for situations where the LINQ database is not a valid database query or unless the SQL has not been compiled properly or is not scalable enough.
-
C# Basic Authentication with ASP.NET MVC
In this tutorial, I’ll show you how to implement basic authentication using ASP.NET MVC.
(more…) -
Enable CORS in ASP.NET Web API
The CORS (Cross Origin Resource Sharing) ASP.NET Web API allows us to request data from another website without having to use JavaScript. This will let us access data from sites that don’t support cross origin requests. This prevents a web page and increases the security prevents a web page from making ajax requests to another domain when the access control allow methods are not defined.