An open API service indexing awesome lists of open source software.

https://github.com/wilddylan/coredata_ce

XXCoreData Handle
https://github.com/wilddylan/coredata_ce

Last synced: about 1 year ago
JSON representation

XXCoreData Handle

Awesome Lists containing this project

README

          

CoreData_CE
===========

XXCoreData Handle

//
// ADCoreData.h
// CoreData_CE
//
// Created by Dylan on 14-10-11.
// Copyright (c) 2014年 Dylan. All rights reserved.
//

/*!
* @Author Dylan.
*
* Please add CoreData.FrameWork
*/

#import
#import

@interface ADCoreData : NSObject

/*!
* @Author Dylan.
*
* context
*/
@property (nonatomic, strong, readonly) NSManagedObjectContext * manageContext;

+ (instancetype)shareInstanceWithStoreName: (NSString *)storeName;

/*!
* @Author Dylan.
*
* Methods
*/

- (NSMutableArray *)findByModel: (id)model;
- (NSMutableArray *)findByModel: (id)model
predicateString: (NSString *)predicateString;
/*!
* Update
*/
- (BOOL)create: (id)model;

- (BOOL)remove: (id)model;
- (BOOL)remove: (id)model
predicateString: (NSString *)predicateString;
- (BOOL)modify: (id)model
predicateString: (NSString *)predicateString;

@end