大家好,我有以下设置:
这是我的定义
@interface Item : NSManagedObject
@property (nonatomic, retain) NSNumber * cid;
@property (nonatomic, retain) NSData * image_data;
@property (nonatomic, retain) NSString * image_url;
@property (nonatomic, retain) NSNumber * order_id;
@property (nonatomic, retain) NSNumber * status;
@property (nonatomic, retain) NSString * title;
@property (nonatomic, retain) NSString * url;
然而不知何故,我只在我的 sqlite3 数据库中看到以下内容:
sqlite> .schema ZITEM
CREATE TABLE ZITEM ( Z_PK INTEGER PRIMARY KEY, Z_ENT INTEGER, Z_OPT INTEGER, ZCID INTEGER, ZORDER_ID INTEGER, ZSTATUS INTEGER, ZIMAGE_URL VARCHAR, ZTITLE VARCHAR, ZURL VARCHAR );
这里的任何人都知道为什么没有 ZIMAGE_DATA 作为这些列之一?