Assigning a column in table to a field of a dataset element via code

I have a dataset and a table, and I want to assign each field in the dataset’s element to its proper column in the table by code only.
Is there any way to do that?
Thanks.

https://www.wix.com/corvid/reference/$w/table/columns