how to update one to many relationship in ef core code example
Example: entity framework core update one to many relationship
exec sp_executesql N'SET NOCOUNT ON;UPDATE [Books] SET [AuthorId] = @p0WHERE [BookId] = @p1;SELECT @@ROWCOUNT;',N'@p1 int,@p0 int',@p1=2,@p0=NULL