How do I correct the error “cannot implicitly convert type 'int' to 'string'” in ' qual.employee_id = recruitment.employee_id; '?

后端 未结 1 1919
[愿得一人]
[愿得一人] 2021-01-28 08:50

Hide Copy Code

public class QualificationService
{
    public void SaveQualificationDetails(RecruitmentViewModel recruitment)
    {
        Qualification qual          


        
相关标签:
1条回答
  • 2021-01-28 09:07

    Simply use Object.ToString():

    qual.Employee_Id = recruitment.Employee_Id.ToString();
    
    0 讨论(0)
提交回复
热议问题