NSFileManager * manager=[NSFileManager defaultManager];
if (![manager fileExistsAtPath:[EntSideModelDB getDir:[GUserSetting provider].PersonId]])
[manager createDirectoryAtPath:[EntSideModelDB getDir:[GUserSetting provider].PersonId] withIntermediateDirectories:YES attributes:nil error:nil];
m_EntDB=[[EntSideModelDB alloc] initWithPath:[EntSideModelDB getPath:[GUserSetting provider].PersonId]];//路径
//加载本地数据
if (![(EntSideModelDB *)m_EntDB open]) {//创建数据库
[m_EntDB release];
m_EntDB = nil;
NSLog(@"++++++++++++");
}else{
NSLog(@"------------");
}