How to make a history

Asked

Viewed 38 times

0

Hi, I have a question and I don’t know how to begin to resolve it. I’m using the Asp.net mvc and I have to create a history table, where it makes a copy of a certain part, even if I delete the original, the copy stays.

this is the model I need to copy, but the function name or a link on how to do it is good enough for me.

public class Item
{
    [Key]
    public int Id { get; set; }
    public string NameItem { get; set; }
    public string Attachments { get; set; }
    public int FicheId { get; set; }
    [ForeignKey("EntidadeEstrangeira")]
    public Ficha Fiche { get; set; }
    public string NameUser { get; set; }
    [ForeignKey("EntidadeEstrangeira")]
    public Location Location { get; set; }
 }
  • https://answall.com/questions/10304/exclus%C3%a3o-f%C3%adsica-vs-exclus%C3%a3o-l%C3%b3gica

  • 1

    But I didn’t understand, at what moment is your doubt?

  • Bfavetto saved me, thank you and sorry for the poorly worded question.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.