Blogs Hub

by AskGif | Mar 23, 2019 | Category :coding

New features about ASP.NET and C#

New features about ASP.NET and C#

Microsoft is coming out with a bunch of new features that make me very glad to be a .NET-oriented developer. The ASP.NET vNext platform looks like it is going to be a solid improvement to the environment; no longer will users be tied to IIS or Visual Studio and I anticipate some strong VS competi

read more...

by AskGif | Mar 21, 2019 | Category :coding

Learning Postgresql (npgsql), Entity Framework 7 (EF Core), and ASP.NET MVC 6

Learning Postgresql (npgsql), Entity Framework 7 (EF Core), and ASP.NET MVC 6

Finally, Entity Framework has support for databases other than SQL Server, and as many of us know, MVC 6 is cross-platform. This means we .NET devs can now launch our ASP.NET applications on a Linux server, saving huge on server costs and giving us some freedom. EF7 now supports SQL Server, Postg

read more...

by AskGif | Mar 21, 2019 | Category :coding

Authorize .NET MVC Core API requests with OpenIddict and Identity

Authorize .NET MVC Core API requests with OpenIddict and Identity

OpenIddict is an excellent open-source library for dealing with OAuth and OpenID in the new MVC Core (previously known as MVC6) for .NET Core. At first, I dreaded having to relearn this process; OAuth Bearer Tokens in MVC5 was dicey and kind of annoying to get the hang of. But, OpenIddict is pret

read more...

by AskGif | Mar 21, 2019 | Category :coding

How to deploy ASP.NET Core 1.0.1 to Heroku ?

How to deploy ASP.NET Core 1.0.1 to Heroku ?

Heroku is a great Infrastructure as a Service platform that provides easy deployment for Node, Ruby, PHP, Go, and many others – unfortunately, this does not include ASP.NET out-of-the-box. This is because ASP.NET has been a Windows-only platform since its inception, and Heroku only supports

read more...

by AskGif | Mar 20, 2019 | Category :coding

ASP.NET Core 2.0 Google OAuth Redirection with Add Hosted Domain and other parameters

ASP.NET Core 2.0 Google OAuth Redirection with Add Hosted Domain and other parameters

Adding a hosted domain parameter is not directly supposed through the GoogleOptions class, unfortunately &ndash; however with a few (not obvious) tweaks, you can easily add the parameter! &nbsp; In your Startup.cs, set up a new Events parameter as such: <pre class="language-c

read more...