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

How to run example app #269

Closed
devpranav2104 opened this issue Feb 27, 2020 · 4 comments
Closed

How to run example app #269

devpranav2104 opened this issue Feb 27, 2020 · 4 comments

Comments

@devpranav2104
Copy link

i want to run the example app in my ios simulator. Can you please help me regarding this

@vitusortner
Copy link
Collaborator

At what step are you stuck? Have you generated the code with flutter packages pub run build_runner build?

@devpranav2104
Copy link
Author

Thank you it works. Last time i also run this command but it didn't generate code for Dao.This time everything works ok

@devpranav2104
Copy link
Author

Is it possible to declare private fields in Entity Model?

@mqus
Copy link
Collaborator

mqus commented May 5, 2020

yeah, I'll try to do an example below:

@entity
class Dog {
  @primaryKey
  final int id;

  final String name;

  @ColumnInfo(name: 'nick_name')
  final String nickName;

  @ColumnInfo(name: 'owner_id')
  final int _ownerId;

  Dog(this.id, this.name, this.nickName, this._ownerId);
}

in this case, _ownerIdwould be private and can only be accessed from the same dart file (afaik).

If you have other questions, please open a new issue, I'll be closing this since the original question was solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants