当前位置: 首页 > news >正文

云南网站做的好的公司seo服务合同

云南网站做的好的公司,seo服务合同,什么好的主题做网站,免费在线图片编辑器关于coredata 网上的相关资料比较少,大部分是基本用法。于是便找到苹果官方文档进行深入学习。 分享一下心得,如果用了coredata 必须懂得 coredata Migration,否则app版本更新 core data model schema 变化很大可能导致持久化coredata 出错&a…

 

 

  关于coredata 网上的相关资料比较少,大部分是基本用法。于是便找到苹果官方文档进行深入学习。

  分享一下心得,如果用了coredata 必须懂得 coredata Migration,否则app版本更新 core data model schema 变化很大可能导致持久化coredata 出错,程序崩溃。

  以下几种情况 可以简单的用  Lightweight Migration 迁移数据到新版本Model, 如下。

   NSDictionary *options = [NSDictionarydictionaryWithObjectsAndKeys:[NSNumbernumberWithBool:YES], NSMigratePersistentStoresAutomaticallyOption,     [NSNumbernumberWithBool:YES], NSInferMappingModelAutomaticallyOptionnil];

    _persistentStoreCoordinator = [[NSPersistentStoreCoordinatorallocinitWithManagedObjectModel:[selfmanagedObjectModel]];

    if (![_persistentStoreCoordinatoraddPersistentStoreWithType:NSSQLiteStoreTypeconfiguration:nilURL:storeURL options:options error:&error]) 

  //其他代码

--------------几种情况概括如下--------------------

    1,Simple addition of a new attribute.(为某个Entity 添加属性)

    2,Removal of an attribute.(为某个Entity 删除属性)

    3,A non-optional attribute becoming optional.

    4,An optional attribute becoming non-optional, and defining a default value.

    5,Renaming an entity or property.

 

  • Adding relationships and changing the type of relationship

    • You can add a new relationship or delete an existing relationship.

    • Renaming a relationship (by using a renaming identifier, just like an attribute)

    • Changing a relationship from a to-one to a to-many, or a non-ordered to-many to ordered (and visa-versa)

  • Changing the entity hierarchy

    • You can add, remove, rename entities

    • You can create a new parent or child entity and move properties up and down the entity hierarchy

    • You can move entities out of a hierarchy。

  

 

  <注意>You cannot, however, merge entity hierarchies; if two existing entities do not share a common parent in the source, they cannot share a common parent in the destination。这种情况不能用轻量迁移。

官方文档:

 https://developer.apple.com/library/ios/#documentation/Cocoa/Conceptual/CoreDataVersioning/Articles/vmLightweightMigration.html#//apple_ref/doc/uid/TP40004399-CH4-SW1

   下篇 《 core data model mapping 》

 

 

  

http://www.lbrq.cn/news/2724895.html

相关文章:

  • wordpress 文件下载漏洞百度关键字优化价格
  • 个人建购物网站怎么备案怎么自己做网页
  • centos 6.5 搭建wordpresswindows优化大师可以卸载吗
  • php做网站技术方案青岛自动seo
  • 全国住房和城乡建设厅网站推广方案怎么做
  • 域名不变 新网站搜索引擎优化的目的是对用户友好
  • wordpress 慢外贸推广优化公司
  • 东莞公司网站建设台州seo排名外包
  • 小型企业网站的设计与实现最新足球赛事
  • 做自己的网站能赚钱吗海外营销推广
  • 合肥市建设局网站国外推广渠道平台
  • 游戏币网站怎么做seo实战培训课程
  • 做两个网站 之间超链接网络推广怎么样
  • 凯里做网站的公司上海网站建设开发公司
  • 做网站的基本步骤电商推广联盟
  • 中山网站方案自助网站建设平台
  • 番禺做网站哪家好如何让百度快速收录网站文章
  • 亚马逊网站建设进度计划书百度关键词挖掘工具爱站网
  • 做电子商务网站 除了域名 网页设计 还有服务器 和网站空间seo入门黑帽培训教程
  • 正版win10做win7系统下载网站优化seo是什么意思
  • b2b网站建站自动外链网址
  • 网站建设业务流程图网站开发北京公司
  • 公司发展规划seo管理
  • 怎样做内网网站站长统计ios
  • 网站可以做无形资产百度搜索 手机
  • wordpress 做网站网上交易平台
  • 网站代码模板免费百度博客收录提交入口
  • crm订单管理系统免费广州seo公司
  • 网站费用怎么做会计分录品牌建设的五个要素
  • 杭州装修公司排名前十强seo网站排名优化公司哪家好
  • 以下是对智能电梯控制系统功能及系统云端平台设计要点的详细分析,结合用户提供的梯控系统网络架构设计和系统软硬件组成,分点论述并补充关键要点:
  • HTML5新增属性
  • 【161页PPT】智慧方案企业数字化转型概述(课件)(附下载方式)
  • 【2D】圆上数值积分(半径方向用高斯积分减少点数)
  • Docker Compose 入门教程
  • 【数据分享】上市公司创新韧性数据(2007-2023)