objectbox-c icon indicating copy to clipboard operation
objectbox-c copied to clipboard

C# API/binding for ObjectBox

Open daybson opened this issue 6 years ago • 6 comments

Is possible to make it C# compatible to Xamarin/Unity 3D?

daybson avatar Nov 24 '19 15:11 daybson

I also want to know this.

RileyGe avatar Dec 03 '19 01:12 RileyGe

It should be possible; e.g. this might be a starting point.

For making this usable in C#, you probably also want to look into extending ObjectBox Generator.

greenrobot avatar Jun 30 '20 18:06 greenrobot

C# bindings would be great for hosting on dotnet (core)

scarlip avatar Feb 01 '21 16:02 scarlip

For making this usable in C#, you probably also want to look into extending ObjectBox Generator.

Hmm, I'm not really sure the I understand correctly what is required to make it happen. Does the ObjectBox Generator need to be extended?

It should be possible; e.g. this might be a starting point.

Or is there an c++ interface that needs to be implemented?

Thanks!

Royosef avatar Jun 02 '21 12:06 Royosef

To clarify for people interested in this, let me try to give some initial guidance what needs to be done

  • A new C# runtime library that builds upon the ObjectBox C APIs to offer the basic functionality of ObjectBox, e.g. opening a store, putting and getting "bytes" (containing FlatBuffer objects) into/from the database
  • The generator needs extended to emit C# code for entity types. Also these types need generated code to tie them to the C# API, e.g. do the conversion C# object <-> FlatBuffers.

Having a look at an existing API/binding like ObjectBox Go would certainly help.

greenrobot avatar Sep 16 '21 06:09 greenrobot