SetFileID sets the "file" edge to the File entity by ID.
(id int)
| 164 | |
| 165 | // SetFileID sets the "file" edge to the File entity by ID. |
| 166 | func (sc *ShareCreate) SetFileID(id int) *ShareCreate { |
| 167 | sc.mutation.SetFileID(id) |
| 168 | return sc |
| 169 | } |
| 170 | |
| 171 | // SetNillableFileID sets the "file" edge to the File entity by ID if the given value is not nil. |
| 172 | func (sc *ShareCreate) SetNillableFileID(id *int) *ShareCreate { |
no outgoing calls
no test coverage detected