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; }

} 

Tuesday, February 20, 2024

Repair damaged system files as follows:


  • Type cmd in Windows search
  • Right-click on Command Prompt and select Run as administrator
  • When the User Account Control window pops up, click Yes
  • Use the following command and press Enter:
    sfc /scannow
  • After the SFC scan is complete, use the following commands, pressing Enter after each:
    DISM /Online /Cleanup-Image /CheckHealth
    DISM /Online /Cleanup-Image /ScanHealth
    DISM /Online /Cleanup-Image /RestoreHealth
  • Restart your system.

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 ...