public override object GetValue(string key) { switch (key) { case "Id": return(Id.ToByteArray()); case "ProcessId": return(ProcessId.ToByteArray()); case "Name": return(Name); case "NextExecutionDateTime": return(NextExecutionDateTime); case "Ignore": return(Ignore ? "1" : "0"); case nameof(RootProcessId): return(RootProcessId.ToByteArray()); default: throw new Exception(string.Format("Column {0} is not exists", key)); } }
public override object GetValue(string key) { switch (key) { case "Id": return Id.ToByteArray(); case "ProcessId": return ProcessId.ToByteArray(); case "IdentityId": return IdentityId; case "AllowedTo": return AllowedTo; case "TransitionTime": return TransitionTime; case "Sort": return Sort; case "InitialState": return InitialState; case "DestinationState": return DestinationState; case "TriggerName": return TriggerName; case "Commentary": return Commentary; default: throw new Exception(string.Format("Column {0} is not exists", key)); } }
public override object GetValue(string key) { return(key switch { "Id" => Id.ToByteArray(), "ProcessId" => ProcessId.ToByteArray(), "IdentityId" => IdentityId, "AddingDate" => AddingDate, "AvailableCommands" => AvailableCommands, _ => throw new Exception($"Column {key} is not exists") });
public override object GetValue(string key) { return(key switch { "Id" => Id.ToByteArray(), "ProcessId" => ProcessId.ToByteArray(), "IdentityId" => IdentityId, "AllowedTo" => AllowedTo, "TransitionTime" => TransitionTime, "Sort" => Sort, "InitialState" => InitialState, "DestinationState" => DestinationState, "TriggerName" => TriggerName, "Commentary" => Commentary, _ => throw new Exception($"Column {key} is not exists") });
public override object GetValue(string key) { switch (key) { case "Id": return(Id.ToByteArray()); case "ProcessId": return(ProcessId.ToByteArray()); case "IdentityId": return(IdentityId as string); default: throw new Exception(string.Format("Column {0} is not exists", key)); } }
public override object GetValue(string key) { switch (key) { case "Id": return(Id.ToByteArray()); case "ActorIdentityId": return(ActorIdentityId); case "ExecutorIdentityId": return(ExecutorIdentityId); case "FromActivityName": return(FromActivityName); case "FromStateName": return(FromStateName); case "IsFinalised": return(IsFinalised ? "1": "0"); case "ProcessId": return(ProcessId.ToByteArray()); case "ToActivityName": return(ToActivityName); case "ToStateName": return(ToStateName); case "TransitionClassifier": return(TransitionClassifier); case "TransitionTime": return(TransitionTime); case "TriggerName": return(TriggerName); default: throw new Exception(string.Format("Column {0} is not exists", key)); } }
public override object GetValue(string key) { return(key switch { "Id" => Id.ToByteArray(), "ActorIdentityId" => ActorIdentityId, "ExecutorIdentityId" => ExecutorIdentityId, "FromActivityName" => FromActivityName, "FromStateName" => FromStateName, "IsFinalised" => IsFinalised ? "1" : "0", "ProcessId" => ProcessId.ToByteArray(), "ToActivityName" => ToActivityName, "ToStateName" => ToStateName, "TransitionClassifier" => TransitionClassifier, "TransitionTime" => TransitionTime, "TriggerName" => TriggerName, "StartTransitionTime" => StartTransitionTime, "TransitionDuration" => TransitionDuration, _ => throw new Exception($"Column {key} is not exists") });