custom static method
Insertable<Teacher>
custom({ - Expression<int>? id,
- Expression<DateTime>? fetchedAt,
- Expression<String>? code,
- Expression<int>? semester,
- Expression<String>? nameZh,
- Expression<String>? nameEn,
- Expression<String>? email,
- Expression<int>? department,
- Expression<String>? title,
- Expression<double>? teachingHours,
- Expression<String>? officeHoursNote,
})
Implementation
static Insertable<Teacher> custom({
Expression<int>? id,
Expression<DateTime>? fetchedAt,
Expression<String>? code,
Expression<int>? semester,
Expression<String>? nameZh,
Expression<String>? nameEn,
Expression<String>? email,
Expression<int>? department,
Expression<String>? title,
Expression<double>? teachingHours,
Expression<String>? officeHoursNote,
}) {
return RawValuesInsertable({
if (id != null) 'id': id,
if (fetchedAt != null) 'fetched_at': fetchedAt,
if (code != null) 'code': code,
if (semester != null) 'semester': semester,
if (nameZh != null) 'name_zh': nameZh,
if (nameEn != null) 'name_en': nameEn,
if (email != null) 'email': email,
if (department != null) 'department': department,
if (title != null) 'title': title,
if (teachingHours != null) 'teaching_hours': teachingHours,
if (officeHoursNote != null) 'office_hours_note': officeHoursNote,
});
}