charlinfeng / coremodel Goto Github PK
View Code? Open in Web Editor NEWReplace CoreData
Replace CoreData
[childModel setValue:[self modelName] forKey:@"pModel"];
表示很不解
build
.xcodeproj/
!.xcodeproj/project.pbxproj
!.xcworkspace/contents.xcworkspacedata
.DS_Store
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
profile
*.moved-aside
DerivedData
*.hmap
*.ipa
Pods
No newline at end of file
sql语句中会出现单引号错误
如
@"INSERT INTO KFChatMessage (messageFor,messageType,messageBody,messageTime,list,hostID,pModel,pid) VALUES (0,0,'I'm ','','321,654,987',1448271114,'',0);"
NSObject的NSString属性里有可能出现例如:I'm这种字符串,会造成插入和更新数据失败
我是了你的框架,我按照你的文档把所有数据都改掉了。我以为你的ObjectValueForKey是你自己自带的自带转换。
对于“核心字段:hostID是服务器主键,任何使用CoreModel的模型必须拥有唯一的hostID,如果您没有hostID,请构建。” 我看过demo后,有几个问题不是太明白,请教一下:
1.你怎么知道hostID对应服务器中的哪个字段
2.支持多个主键吗?联合主键
3.怎么构建hostID
数据库存model的时候不能存数组是不?我model里存了个数组就崩了 数组注释掉就不崩了
错误:你操作的模型NSArray在数据库中没有对应的数据表!
因为很多现有的接口没有返回服务器数据库的id,比如我们的返回数据里是这样的值“557c5b1e4d952d620cd40725”,所以期望能改下hostID的类型。
(2). 开源第四季动态缓存的条件为:CoreModel的Star数据超过1000。
没有开源精神就别上github
在我请求sql数据的时候,返回的是以下的错误
网络请求错误日志(code=1):URL地址有错,要么服务器没有响应。总之连接就有错。
请求URL=(null)?page=1
我想知道的是关于这个url是在哪里设置的,关于取这个sql中的数据,这个地方你能不能介绍的更详细一点
NSObject+Select.h 137行少了下面这句
if(selectResultsBlock != nil) selectResultsBlock(resultsM);
注意:单条数据插入时,你操作的模型IMInfoModel在数据库中没有对应的数据表!框架正在全自动创表,并稍后自动重新执行您的操作,请放心!
把app删除,重新跑一遍,一直说没建表
比如在Model定义 school_code 这种带下划线的变量名会导致Carsh
不能忽略某些属性吗,比如NSMutabArray
-[MJProperty setOriginKey:forClass:](in XXXXXXX) (MJProperty.m:142)
当建立的属性类型是int类型时,code=i,运行方法“+ (NSString *)sqliteType:(NSString *)fieldType”时,得出的 sqliteType = TEXT_TYPE,这是因为nsstring对应的字段里有i,所以导致创建的数据库中对应字段类型不正确。
删除app后重新安装,会一直提示以下问题,请问怎么解决,谢谢!
注意:你操作的模型SYPersonModel在数据库中没有对应的数据表,框架正在全自动创表,并稍后自动重新执行您的操作,请放心!
条件查询的时候selectResultsBlock 走的次数等于查询出来的数据条数,这算是bug么
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.