locked
Cannot implicitly convert type 'long' to 'bool' RRS feed

  • Question

  • User1929428035 posted

    the error occurs on the following: "cs.ClassID = (ClID)".

    CLID is declared as an int32 and ClassID is declared as int32 in the database.  Please help.

    var query = (from sa in this.ObjectContext.StudentAttendances
    join cs in this.ObjectContext.ClassStudents 
    on sa.StudentID equals cs.StudentID 
    join tc in this.ObjectContext.TeacherClasses 
    on cs.ClassID equals tc.ClassID
    where cs.ClassID = (ClID)
    select sa);



    Saturday, June 1, 2013 7:14 AM

Answers

  • User477186420 posted

    Change your query as below

    where cs.ClassID == (ClID)

    let me know if any query

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, June 1, 2013 7:26 AM

All replies

  • User477186420 posted

    Change your query as below

    where cs.ClassID == (ClID)

    let me know if any query

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, June 1, 2013 7:26 AM
  • User1929428035 posted

    Forgot that. been working for 18 hrs straight.

    Saturday, June 1, 2013 7:43 AM