Code First Entity Framework Core

Most of the people using Entity Framework are familiar with the approach of generating database through code.  This method is popularly known as "Code First" approach. "Code First" workflow begins with classes that describe the conceptual model.  In addition, Code first approach offers more control over the final appearance of the application code and the resulting database.  By the way we will talk about Code First Entity Framework Core using SQL Server in this blog…

Continue ReadingCode First Entity Framework Core

Restrict IP Address in ASP.NET Web API

There are several ways to restrict access to a Web server based on the requestor’s IP address.  We can do that from IIS or using inbound Firewall rules. But If you want to restrict access to one of the applications deployed in the server based on the IP Address then you have to achieve that programmatically.  In this post, we will see how to restrict IP addresses in ASP.NET Web API. Check this Post for…

Continue ReadingRestrict IP Address in ASP.NET Web API