Closed GoedertDalmolin closed 2 years ago
Sorry! PR #271 caused this. I fixed now pls try the latest sqfentity_gen 2.3.0+1
@a7mdragab Notice that you shouldn't have changed the definitions of tablename, modelname, or canceled tolower() or something ok? :)
I ran tests and concluded that the problem was fixed.
Note: This was my first official issue. As this issue has been fixed, I am closing the issue.
Thank you very much.
When I create the following table model (SqfEntityTable) in model.dart file:
Note that the "modelName" attribute is filled with a string in which upper and lower case letters are present. When adding this table inside the database creation model (SqfEntityModel), in the attribute "databaseTables" and "formTables".
When completed the following command by the terminal:
flutter pub run build_runner build --delete-conflicting-outputs
At the end of the file generation process, the file "model.g.view.dart" with errors will be generated.
Generated file:
According to dart's compilation output:
When checking the error, note that the capital letters entered in the "modelName" field of the "SqfEntityTable" were not respected. It should be "TestDB" but "testdb" was generated.
But if I manually change it to "testDB" it also works.