The phrase 这样一来 is used in two cases:
1) to draw a conclusion about a previous sentence. This phrase comes in the beginning of the sentence. The phrase is separated with a comma.
Scheme
这样一来
,
conclusion
Examples
这样一来,有更多的人获得了解脱
Thus, more people have gained freedom.
zhèyàng yìlái, yǒu gèng duō de rén huòdé le jiětuō
这样一来,大量的图书馆就被毁了
Thus, a large number of libraries are getting ruined
zhèyàng yìlái, dàliàng de túshūguǎn jiù bèi huǐ le
2) to state the result of a previous sentence.
This phrase comes in the middle of the sentence. Commas are put around both sides of it.
Scheme
statement
,
这样一来
,
result
Examples
这些小鸟总是在唱歌,这样一来,我家门前可热闹了
These birds are always singing. This livens up my house