Skip to main content

Posts

Showing posts with the label .Net

Understanding OriginalValue and CurrentValue in Entity Framework (EF) with C#

Understanding OriginalValue and CurrentValue in Entity Framework (EF) with C# Code Examples Entity Framework (EF) is a powerful Object-Relational Mapping (ORM) tool for .NET developers. One of its key features is the ability to track changes in entities using  OriginalValue  and  CurrentValue . These values are essential for understanding how data evolves over time and ensuring data integrity. Let’s dive into how EF uses these values, with practical C# code examples. What Are OriginalValue and CurrentValue in EF? Definition of OriginalValue In EF, the  OriginalValue  represents the value of a property when the entity was first retrieved from the database or last saved. It acts as a baseline for comparison when changes are made. Definition of CurrentValue The  CurrentValue  is the present value of a property after any modifications. It reflects the latest state of the entity before it is saved back to the database. Why Are OriginalValue and CurrentValue...

C Sharp (C#) - Programming Language

C#   It is a   multi-paradigm programming language  encompassing  strong typing ,  imperative ,  declarative ,  functional ,  generic ,  object-oriented  ( class -based) , and   component-oriented  programming disciplines . It was developed by  Microsoft  within its  .NET  initiative and later approved as a standard by  Ecma  (ECMA-334) and  ISO  (ISO/IEC 23270:2006). C# is one of the programming languages designed for the  Common Language Infrastructure .  Its development team is led by  Anders Hejlsberg The most recent version is C# 6.0 which was released in 2015  Anders Hejlsberg. ECMA - It is commonly used for  client-side scripting  on the  World Wide Web. The ECMA standard lists -  The C# language is intended to be a simple, modern, general-purpose, object-oriented programming language. The language, a...