-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCoreDataUtil.h
More file actions
30 lines (26 loc) · 793 Bytes
/
CoreDataUtil.h
File metadata and controls
30 lines (26 loc) · 793 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//
// CoreDataUtil.h
// CoreDataPerformance
//
// Created by brave on 2017/7/24.
// Copyright © 2017年 apple. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
#import "Median+CoreDataProperties.h"
#define TableName @"Median"
@interface CoreDataUtil : NSObject
@property (nonatomic,strong)NSManagedObjectContext *managedObjectContext;
@property (nonatomic,strong)NSManagedObjectModel *managedObjectModel;
@property (nonatomic,strong)NSPersistentStoreCoordinator *persistentStoreCoordinator;
- (NSURL *)applicationDocumentDirectory;
//插入
- (double)insertData:(int)insertSize;
//查询
- (double)selectData:(int)fetchSize;
- (double)selectAll;
//删除
- (double)deleteData:(int)deleteSize;
//更新
- (double)updateData:(int)updateSize;
@end