In my entity mapping, the fields that are FK look like this:
public virtual T_Acao T_Acao { get; set; }
public virtual ICollection<T_OsParceiro> T_OsParceiro { get; set; }
public virtual T_ProximaAcao T_ProximaAcao { get; set; }
In my program, I need to pass a string value to T_Action. How do I do this? I tried a cast like that, but I could not:
tarefa.T_Acao = osParceiro.AcaoParceiro;
AcaoParceiro
is of type string
. I tried casting this way:
tarefa.T_Acao = (SuporteTecnico.Models.T_Acao)osParceiro.AcaoParceiro;
The error is:
Can not implicit convert type "string" to
SuporteTecnico.Models.T_Acao