Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C# API/binding for ObjectBox #5

Open
daybson opened this issue Nov 24, 2019 · 6 comments
Open

C# API/binding for ObjectBox #5

daybson opened this issue Nov 24, 2019 · 6 comments
Labels
enhancement New feature or request

Comments

@daybson
Copy link

daybson commented Nov 24, 2019

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

@RileyGe
Copy link

RileyGe commented Dec 3, 2019

I also want to know this.

@greenrobot
Copy link
Member

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 greenrobot added the enhancement New feature or request label Sep 1, 2020
@scarlip
Copy link

scarlip commented Feb 1, 2021

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

@Royosef
Copy link

Royosef commented Jun 2, 2021

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!

@greenrobot greenrobot changed the title Is possible to make it C# compatible to Xamarin/Unity 3D? C# API/binding for ObjectBox Sep 16, 2021
@greenrobot
Copy link
Member

greenrobot commented Sep 16, 2021

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.

@anose001
Copy link

anose001 commented Sep 28, 2024

@greenrobot, hi there, Is there any plan for a C# SDK for ObjectBox? Almost every other language except C# is supported. Just curious to hear what the plan is, now that Realm will not be supported anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants