asp.net core

Dependency Injection to The Core (Part - II)

Say for example, our client changed their requirements and now wants us to read and write comma separated data (CSV) from a filesystem instead of a database. Suppose I’ve searched and downloaded a cool library that can work with CSV files. So, we have a CSV library configured and ready to talk with our CSV files in the data access layer. If you are following me then you would say, now that we have a new data access layer, we also need a new repository. Right? Exactly! Since we…

Keep reading

Dependency Injection to The Core (Part - I)

Okay since I’m writing blogs mostly on asp.net core lately, you might be wondering that why am I writing a blog on a topic which is already available in asp.net core official documentation. Well, in this post I’m not only going to talk about how you can achieve DI (Dependency Injection) in .net core but will also discuss about DI itself (what, why and how). This article reflects how I actually learned (still learning) DI. So, if you don’t want to follow my approach or…

Keep reading

Don't Share Your Secrets! (.NET CORE Secret Manager Tool)

I’ve been working on this million-dollar project of mine and wanted it to make the project open source. So, I made a repository on github and pushed my project. That’s where I almost made a big mistake. Since my project was data driven so there were some connection strings stuff in my web.config file, Practically I would remove the connection strings and other credentials stuff out of my web.config file before I push it to the repository. But it was a big headache for me since…

Keep reading

Building Apps with Polymer and ASP.NET CORE (Part - II)

OK! As I told you in the previous post that I will make APIs using ASP.NET CORE Web API to be able to Add, Update, Edit and Delete todo items on the server side but the good news is ASP.NET CORE documentation already has an article on that. Here is the link, https://docs.asp.net/en/latest/tutorials/first-web-api.html Wait a minute! That doesn’t mean I’m not going to do anything in this post. If you went through that article already then you may…

Keep reading

Building Apps with Polymer and ASP.NET CORE (Part - I)

So, I guess you have been running wild with Angular lately. If that so, then I’m pretty much sure that you are familiar with the concept of directive. HTML5 too came up with this concept of creating custom components and they call it web components. But today’s lesson is not about web components rather it is on a third party library that is built upon web components. Like JQuery, which is basically a library to work with javascript somewhat easily, Polymer is a library which can help us…

Keep reading

Configuring Typescript for ASP.NET CORE Apps

Start with an empty project Open up Visual Studio 2015 and create a new ASP.NET Core Web Application. Make sure you have ASP.NET CORE RC2 installed in your PC if you want to follow this walkthrough step by step. Choose the Empty Template from the available ASP.NET Core Templates since we are totally starting from scratch. After your project is created, it should restore required NuGet packages defined in the project.json file. The empty project solution will look like this, Adding a default html file To…

Keep reading

NPM, BOWER, NUGET, GULP – The Four Horsemen of ASP.NET CORE Apps

It's not really a introduction Okay! So I’m not going to waste your time here giving some definitions of these four well known and broadly used tools. Rather I’ll show you how you can get most out of these tools while working on an ASP.net core web applications. I’m going to start with a blank project and will add these tools (except for NuGet. All Asp.net core apps support NuGet by default) one by one in the project. Finally you will have a good understanding…

Keep reading