1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[SQL] I got this error in my code. How should I clear this?

Discussão em 'Outras Linguagens' iniciado por Stack, Outubro 25, 2024 às 12:02.

  1. Stack

    Stack Membro Participativo

    This is my code:

    public MyResponse InsertTeam(MyRow Row)
    {
    try
    {
    var connection = SqlConnections.NewByKey("Cred");

    /* Getting Insert to LogBook table */
    TeamRow team = new TeamRow();
    team.TeamId = TeamRow.Fields.TeamId;

    var teamId = User.GetIdentifier();

    team.CreatedBy = User.GetIdentifier();
    team.CreatedOn = TimeZoneInfo.ConvertTime(DateTime.Now, TimeZoneInfo.FindSystemTimeZoneById("India Standard Time"));
    }
    catch
    { }

    return new SaveResponse();
    }


    I get this error when running it:


    Cannot implicitly convert type 'Serenity.Data.Int32Field' to 'int?'.

    on this line:

    team.TeamId = TeamRow.Fields.TeamId;


    How should I clear this?

    Continue reading...

Compartilhe esta Página