AddFileIDs adds the "file" edge to the File entity by IDs.
(ids ...int)
| 143 | |
| 144 | // AddFileIDs adds the "file" edge to the File entity by IDs. |
| 145 | func (ec *EntityCreate) AddFileIDs(ids ...int) *EntityCreate { |
| 146 | ec.mutation.AddFileIDs(ids...) |
| 147 | return ec |
| 148 | } |
| 149 | |
| 150 | // AddFile adds the "file" edges to the File entity. |
| 151 | func (ec *EntityCreate) AddFile(f ...*File) *EntityCreate { |