简体   繁体   English

领域iOS与领域Xamarin iOS和/&领域Java与领域Xamarin Android之间的兼容性

[英]Compatibility between realm iOS and realm Xamarin iOS && realm Java and realm Xamarin Android

In my company we have 2 native iOS/Android libraries using Core Data and ORMLite. 在我公司,我们有2个使用Core Data和ORMLite的本地iOS / Android库。 We would like to replace these ORMs by realm, but we have few questions about compatibilities between the different realm libraries. 我们想用领域替换这些ORM,但是对于不同领域库之间的兼容性我们没有多少疑问。

  • Is Realm Objective-C compatible with Realm Xamarin iOS (realm dotnet?) ? Realm Objective-C是否与Realm Xamarin iOS(realm dotnet?)兼容?
  • Is Realm Objective-C compatible with Realm Swift ? Realm Objective-C是否与Realm Swift兼容?
  • Is Realm Java compatible with Realm Xamarin Android (realm dotnet?) ? Realm Java是否与Realm Xamarin Android(realm dotnet?)兼容?

By compatible I mean, can I make a Xamarin app using realm dotnet to write some data in realm, and then query that data from a native obj-c/swift library using realm (that library being referenced by the xamarin app). 兼容是指我可以使用领域dotnet创建Xamarin应用程序以在领域中写入一些数据,然后使用领域(该库由xamarin应用程序引用)从本机obj-c / swift库查询该数据。

All the Realm bindings use the same underlying database technology under the hood, so yes that is possible, and it is also one of our primary design goals. 所有Realm绑定都在后台使用相同的基础数据库技术,因此可以实现,这也是我们的主要设计目标之一。

The API's might differ slightly across languages, but you should definitely be able to access the data. 不同语言的API可能略有不同,但是您绝对应该能够访问数据。

The only requirement is just that the model classes have to match across the languages, since those are what defines the schema. 唯一的要求就是模型类必须跨语言匹配,因为定义类的是这些。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM