###咨询qq:712641411 ###作者:吴海超
###升级更新日志
####1.存储嵌套模型对象到数据库演示
Person * whc = [Person new];
whc.name = @"吴海超";
whc.age = 25;
whc.height = 180.0;
whc.weight = 140.0;
whc.isDeveloper = YES;
whc.sex = 'm';
// 嵌套car对象
whc.car = [Car new];
whc.car.name = @"撼路者";
whc.car.brand = @"大路虎";
// 嵌套school对象
whc.school = [School new];
whc.school.name = @"北京大学";
whc.school.personCount = 5000;
// school对象嵌套city对象
whc.school.city = [City new];
whc.school.city.name = @"北京";
whc.school.city.personCount = 1000;
[WHC_ModelSqlite insert:whc];
####2.存储批量模型对象到数据库演示
NSArray * persons = [self makeArrayPerson];
[WHC_ModelSqlite insertArray:persons];
####3.无条件查询数据库中模型类演示
NSArray * personArray = [WHC_ModelSqlite query:[Person class] where:nil];
####4.条件查询数据库中模型类演示(where 条件查询语法和sql where条件查询语法一样)
NSArray * personArray = [WHC_ModelSqlite query:[Person class] where:@"name = '吴海超2' OR age <= 18"];
####5.修改数据库中模型对象演示(where 条件查询语法和sql where条件查询语法一样)
[WHC_ModelSqlite update:whc where:@"name = '吴海超2' OR age <= 18"];
####6.删除数据库中模型对象演示(where条件查询为空则删除所有)
[WHC_ModelSqlite delete:[Person class] where:@"age = 25 AND name = '吴海超'"];
####7.清空指定数据库演示
[WHC_ModelSqlite clear:[Person class]];
####8.删除数据库演示
[WHC_ModelSqlite removeModel:[Person class]];
####9.删除所有数据库演示
[WHC_ModelSqlite removeAllModel];
####10.获取数据库本地路径演示
NSString * path = [WHC_ModelSqlite localPathWithModel:[Person class]];
####11.获取数据库本地版本号演示
NSString * path = [WHC_ModelSqlite versionWithModel:[Person class]];