Thursday, February 29, 2024

In entity framework use of NotMapped when its column is not in the table.

using System.ComponentModel.DataAnnotations.Schema;


public class MyEntity

{

    // This property will be mapped to a database column

    public int Id { get; set; }


    // This property will not be mapped to a database column

    [NotMapped]

    public string CalculatedProperty { get; set; }

} 

IANA timezone details in short

  The IANA Time Zone Database (often called tzdata , zoneinfo , or the Olson database ) is the global standard for representing time zones ...