When working with data, oftentimes my clients or customers have asked me, “who changed that record?”. I always add some audit info to all my entities (models/tables) to know who added or changed a piece of data and when it was last changed.
When working with data, oftentimes my clients or customers have asked me, “who changed that record?”. I always add some audit info to all my entities (models/tables) to know who added or changed a piece of data and when it was last changed.
Let’s start by creating an interface called IEntity that demands that my auditable entities will need to have the following fields:
public interface IEntity
{
object Id { get; set; }
public string CreatedBy { get; set; }
public DateTime CreatedOnUtc { get; set; }
public string LastModifiedBy { get; set; }
public DateTime? LastModifiedOnUtc { get; set; }
public string IPAddress { get; set; }
public bool IsDeleted { get; set; }
}
Then create a BaseEntity class that implements IEntity. The base entity is marked as an abstract class because you will never need to instantiate it. It simply serves as a base class for your actual entities.
development programming software-engineering c-sharp-programming software c-sharp
In this article, see if there are any differences between software developers and software engineers. What you’re about to read mostly revolves around my personal thoughts, deductions, and offbeat imagination. If you have different sentiments, add them in the comment section, and let’s dispute! So, today’s topic…
To make the most out of the benefits of offshore software development, you should understand the crucial factors that affect offshore development.
In this article, I am going to share some of the best courses to learn C# or C-Sharp in 2020. These courses are suitable for both beginners and experienced programmers who want to fill gaps in their C# knowledge.
To summarise the main differences between the software developer and engineer: A developer executes. ... So the software developer is mainly focused on developing code that is a part of software development cycle. An engineer designs and plans applying the principles of engineering to software development.
C Language is an evergreen language and is used widely across different industries, This C programming is a must for students and working professionals to become a great Software Engineer especially when they are working in Software Development Domain. Great Learning brings you this live session on "Introduction to C". In this live session, we will be covering major concepts in C Programming such as Different Variables, Different Data Types that are being used, its Operators, Flow control statements, Structure, and lot more.