16個のエンティティ(私が推測するテーブル)で構成されるiOSデータモデルを取得しました。したがって、このアプリの Android バージョンを実行しているので、このモデルを自動的に (推奨される方法で) 何らかの方法でインポートするか、そのために SQL クエリを作成する必要があります。
これは、後で Web サービスを使用してレプリケートする必要がある 16 個のテーブルであるため、データベースをそのまま維持したいと考えています。
元のデータベースでは、アプリケーションのロード時に使用される一部の設定がその特定のデータベースの「設定」テーブル内にあるため、この問題に対する最善のアプローチと、データベースの作成場所をどこに配置するかを説明します。
TNX
編集 1: iOS の最初の 2 つのテーブルからの XML モデル:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<model name="" userDefinedModelVersionIdentifier="" type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="1487" systemVersion="11E53" minimumToolsVersion="Xcode 4.1" macOSVersion="Automatic" iOSVersion="Automatic">
<entity name="FAQItem" representedClassName="FAQItem" syncable="YES">
<attribute name="answer" attributeType="String" syncable="YES"/>
<attribute name="orderNum" attributeType="Integer 16" defaultValueString="0" syncable="YES"/>
<attribute name="question" attributeType="String" syncable="YES"/>
</entity>
<entity name="Ingredient" representedClassName="Ingredient" syncable="YES">
<attribute name="name" optional="YES" attributeType="String" syncable="YES"/>
<relationship name="recipe" optional="YES" minCount="1" maxCount="1" deletionRule="Nullify" destinationEntity="Recipe" inverseName="ingredients" inverseEntity="Recipe" syncable="YES"/>
</entity>