AddStoragePolicyIDs adds the "storage_policy" edge to the StoragePolicy entity by IDs.
(ids ...int)
| 141 | |
| 142 | // AddStoragePolicyIDs adds the "storage_policy" edge to the StoragePolicy entity by IDs. |
| 143 | func (nc *NodeCreate) AddStoragePolicyIDs(ids ...int) *NodeCreate { |
| 144 | nc.mutation.AddStoragePolicyIDs(ids...) |
| 145 | return nc |
| 146 | } |
| 147 | |
| 148 | // AddStoragePolicy adds the "storage_policy" edges to the StoragePolicy entity. |
| 149 | func (nc *NodeCreate) AddStoragePolicy(s ...*StoragePolicy) *NodeCreate { |