Sushant Torankar

Sushant Torankar

  • 2.1k
  • 92
  • 2.7k

About loop in core

Jun 13 2022 6:16 PM


I have 2 tables LogMaster (with columns LogId, Title) and PermissionMaster (with columns Permission Id, LogId, ContactId)

I am getting 2 different ContactId , I have to save it in PermissionMaster table with same LogId and that will be in two different rows in sql, one for each ContactId

how to achieve that ? or I have to use foreach loop in core also ? 

thank you

Answers (3)