EF Core

Entity Framework Core 3.1 - Part 4

In my previous post, we talked about interacting with related entities using entity framework. Introduction Time to look at some special cases where you would want entity framework to work with views, stored procedures and plain old SQL statements. There is a wide minconception that developers raise, “Oh it is a stored procedure, that can’t be good”. There is nothing inherently wrong with using stored procedures. It is nice to have all business logic in one place. However, sometimes complex business needs might result in complex SQL queries, and you are better-off writing such queries with the help of someone who is familiar with SQL instead of doing it in EntityFramework. Which is probably why you have applications which has a few references to some well written stored procedures. ...

October 25, 2020 · 9 min · 1729 words · eakangk
EF Core

Entity Framework Core 3.1 - Part 3

In my previous post, we talked about data access and updates in entity framework. Updating Related Data A naive way to update related data, especially when the context isn’t tracking your object, as in, you send data about an existing entity in the database, from the UI, and EF has to figure out what part of the updated record has changed and needs an update in the database. If you ever encounter a situation where you are to update only one related object of a primary entity, then you might be in for a surprise. I am going to use an example that I followed to understand this from Julie Lerman’s Pluralsight course on EFCore 3. I have never had to do this personally in the round-about way that the example states. However, I am pretty sure I might end up with tricky situations as I spend more time with EF. ...

October 25, 2020 · 7 min · 1464 words · eakangk
EF Core

Entity Framework Core 3.1 - Part 2

In my previous post, we talked looked at an introduction into entity framework core 3. Read and Write Data As I mentioned in the earlier one, I don’t really like writing posts that take longer than 10 minutes to read. It is just too much information. So let us continue with the next part. To learn more about entity framework mappings always refer to this amazing course on Pluralsight titled: Entity Framework Core 2: Mappings, by Julie Lerman ...

October 25, 2020 · 9 min · 1825 words · eakangk
EF Core

Entity Framework Core 3.1 - Part 1

What is this about? This post is one of many in a series of posts on Entity Framework Core. I have attempted to summarise what I learned while working with Entity Framework Core, from stackoverflow answers, to entity framework official docs to courses on pluralsight. In this journey, I found, the pluralsight course, Entity Framework Core: Getting Started by @julielerman most useful. As someone who spent the past few years primarily on managing people, I missed out a lot on the tech side of things. So these days, I have been playing catchup. And guess what? There is a lot to catchup! But as with any learning, it isn’t a sprint, it is a marathon and a pretty long one. ...

October 25, 2020 · 9 min · 1836 words · eakangk
Containers and Virtual Machines

Containers! Docker! Virtual Machines! What exactly do they do?

Background In the last 3 years or so, a lot of blog posts, youtube videos and tutorials came out about containerising applications. I had completely ignored this topic as there was no immediate use of containers that I could apply to my work. Those new to the software industry might not even have heard of containers. When I ask about it to those who brag about it, comparisons are made to Virtual machines but I never really got the details out from anyone, or you can say, I was not satisfied with explanations. ...

October 4, 2020 · 8 min · 1620 words · eakangk
Git Undo

Git: Part 5 - Reset and further

In my previous post we went through branching in git and commands that can be used to get changes from one branch to another. Oops! Let us explore some commands that will prove useful when we end up in tricky situations with Git. Reset Reset helps you undo a commit. You know those times when you commit too soon. Git offers you the following levels of control to when you attempt a reset. ...

October 3, 2020 · 1 min · 204 words · eakangk
Git

Git: Part 4 - Branching and more

Featured Image: “Forest” by fear-sAs is licensed under CC BY-NC-ND 3.0 In my previous post we looked at some basic git commands. Let us delve a little deeper into branches. Git Branch A branch in git is really just a pointer to a commit HEAD Head points to the current branch which in turn points to the latest commit in a branch. ...

October 3, 2020 · 3 min · 481 words · eakangk
Git - Part 3

Git: Part 3 - Hands on

Featured Image: please let me hold your hand by pippimuckel is licensed under CC BY-NC-ND 3.0 In the previous post we went through some concepts and terminology in git. Some basic git commands Create a repository Let us take a look at how we can create a local repository. git init What does it do? Initialises a repository for a project Creates a .git folder for your repository Used by Git to track changes that happen in that repository folder Git stores repository specific settings to that folder It tracks the latest change in a branch in that folder Also stores configuration for the repository in there A new repository, needs some configuration. Let us go ahead and configure it. ...

October 3, 2020 · 2 min · 407 words · eakangk
Git Part 2

Git: Part 2 - Some essential concepts

Featured Image “Essentials” by all black long johns is licensed under CC BY-NC-SA 2.0 In my last post, I introduced you to Git. We talked about its history briefly and how useful it is. In this one, let us explore some key terminology and concepts in Git. That way we have a common language to talk about Git. Remote This is what we generally call the copy of the repository that is maintained somewhere on the server. ...

October 3, 2020 · 5 min · 983 words · eakangk
Git

Git: Part 1 - An introduction

Background When I joined the small company that I currently work for, I was suprised at how little some of my coworkers knew about Git. The fact is, there was no reason to be suprised. I had taken my exposure with Git for granted due to the fact that I had been using it for a couple of years before I joined the firm. So as a good citizen, I prepared a little workshop to help others learn. ...

October 3, 2020 · 4 min · 698 words · eakangk