我已经创建了楼层实体和DAO,但当我运行
flutter packages pub run build_runner build --delete-conflicting-outputs
我得到以下错误
没有添加到数据库注解中的实体。package:storeapp/database/myAppDatabase.dart:74:16 74 │ abstract class MyAppDatabase extends FloorDatabase {} │
但我添加了如下实体
@Database(version: 1, entities: [
Account,
AccountingClass,
LocalizedProperty,
PointOfSale,
StoreCurrencyMapping,
User,
InventoryTransaction,
JournalVoucher,
JournalVoucherEntry,
JournalVoucherEntryDetail,
BaseObject,
StoreCustomer,
StoreEmployee,
StoreVendor,
Store,
Warehouse,
Category,
Product,
ProductCategory,
StoreProductMapping,
Order
])
1条答案
按热度按时间4smxwvx51#
我正在导入一个文件
当我把它改成小写
很好用。