My first idea is extend the partial class 'Step' which is an entity. I could add a bool property and then set that true/false as I complete processing on them.. But then every time I regenerate the DBContext after making changes to the DB won't I have to manually keep doing this? OR is some other way.. The code below explains what I am trying to do
if ((si.StepID == 20) || (si.StepID == 23) || (si.StepID == 24))
{
//Step is a process. Each Step must be run in order
//get list of steps in tasks in RUN (1,2,3,4...) order
int stepToRun = 0;
var stepsInTask = InstanceExpert.GetAllStepsInTaskOrderedByRunOrder(ti.TaskInstanceID);
//Get which step is next to be processed
foreach (Step s in stepsInTask)
{
//get the stepToRun
//Need to extend STEP Entity property with a bool??
}
//Take that step and run the specific function
if (stepToRun == 20)
{
}
if (stepToRun == 23)
{
}
if (stepToRun == 24)
{
}