I have a field called Status: which can receive 3 values. How could the value of that field change depending on the condition of another field that is in my database? I am using entity framework 5 EF.
Let's imagine that I have the following model.
public class batches
(
[Key]
public int Id {get;set;}
public DateTime Start {get;set;}
public DateTime End {get;set;}
public String Status {get;set;}
)
I would like to fill the Start field with the value of the status column change to In Process and when I fill the End field the Status column changes me to complete ect.
Thanks in advance.