ef core update one to one relationship 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