findByCode method
Implementation
Future<EmployeePositionData?> findByCode(String code) async {
return await (db.select(
db.employeePosition,
)..where((e) => e.code.equals(code))).getSingleOrNull();
}
Future<EmployeePositionData?> findByCode(String code) async {
return await (db.select(
db.employeePosition,
)..where((e) => e.code.equals(code))).getSingleOrNull();
}