mirror of
https://github.com/zhigang1992/MagicalRecord.git
synced 2026-04-28 20:15:49 +08:00
use contextForCurrentThread
This commit is contained in:
@@ -175,7 +175,7 @@ static NSUInteger defaultBatchSize = kMagicalRecordDefaultBatchSize;
|
||||
|
||||
+ (NSUInteger) countOfEntities;
|
||||
{
|
||||
return [self countOfEntitiesWithContext:[NSManagedObjectContext defaultContext]];
|
||||
return [self countOfEntitiesWithContext:[NSManagedObjectContext contextForCurrentThread]];
|
||||
}
|
||||
|
||||
+ (NSUInteger) countOfEntitiesWithContext:(NSManagedObjectContext *)context;
|
||||
|
||||
Reference in New Issue
Block a user