Open leslmosnk opened 7 months ago
Thanks! However, I don't really see why this is needed. Can you explain how this is useful to you?
Thanks! However, I don't really see why this is needed. Can you explain how this is useful to you?
This way I managed to extend Object
with Object_
. So I can easily call a query parameter from an instance of Object
.
(I later found out export 'objectbox.g.dart' show Object_
is enough for my purposes)
But why can't the Object_
fields be used in your case? We chose explicitly not to add them to the model class to keep it clean (e.g. to avoid any conflicts with existing code).
Its very possible to use Object_
, but I feel like it only used whenever I also use my Object
. So i'd rather have a static in Object
that would hold my queries instead of having to import and call Object_
every time.
static mebers can be called from an instance of class with ObjectBox queries.