You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First time trying to use objectbox on examples of documentation
Unhandled exception: Invalid argument(s): Unknown entity type PlayerEntity
Dart CLI apps
ObjectBox version: ^1.2.0
Dart SDK: 2.14.2 (stable) on "linux_x64"
Null-safety enabled: yes
Reproducibility: always
OS: Ubuntu
Steps to reproduce
Add ObjectBox to your project
Define Entity Classes
@Entity()
classPlayerEntity {
int id =0;
String? text;
@Property(type:PropertyType.date)
DateTime date;
PlayerEntity({this.text, DateTime? date}) : date = date ??DateTime.now();
}
Generate ObjectBox code
Run
voidmain() async {
final store =openStore();
final box = store.box<PlayerEntity>();
final note =PlayerEntity(text:'Hello');
final id = box.put(note);
First time trying to use objectbox on examples of documentation
Unhandled exception: Invalid argument(s): Unknown entity type PlayerEntity
Dart CLI apps
Steps to reproduce
The text was updated successfully, but these errors were encountered: