Create a Core Date Entity Instance But not want it to be stored(non-persistent)

前端 未结 3 683
轻奢々
轻奢々 2021-01-25 02:16

Sometimes I need instantiate CoreDateEntity to store some infomations for temporarily using. But I needn\'t it be stored into DB.

currently I created a similar class whi

3条回答
  •  终归单人心
    2021-01-25 02:34

    Use two different managed object context's and only save the objects from one context. Be careful not to set relationships between objects of two different context's - this doesn't work.

提交回复
热议问题