custom static method
Insertable<TeacherData>
custom({
- Expression<
int> ? id, - Expression<
String> ? fullName, - Expression<
DateTime> ? birthday, - Expression<
String> ? genderId, - Expression<
String> ? teacherPositionId, - Expression<
bool> ? locked, - Expression<
bool> ? active, - Expression<
int> ? universityId, - Expression<
String> ? countryId, - Expression<
String> ? youtubeVideoCode, - Expression<
String> ? email, - Expression<
String> ? skype, - Expression<
String> ? facebook, - Expression<
String> ? phoneNumber, - Expression<
String> ? description, - Expression<
String> ? note, - Expression<
String> ? imagePath,
Implementation
static Insertable<TeacherData> custom({
Expression<int>? id,
Expression<String>? fullName,
Expression<DateTime>? birthday,
Expression<String>? genderId,
Expression<String>? teacherPositionId,
Expression<bool>? locked,
Expression<bool>? active,
Expression<int>? universityId,
Expression<String>? countryId,
Expression<String>? youtubeVideoCode,
Expression<String>? email,
Expression<String>? skype,
Expression<String>? facebook,
Expression<String>? phoneNumber,
Expression<String>? description,
Expression<String>? note,
Expression<String>? imagePath,
}) {
return RawValuesInsertable({
if (id != null) 'id': id,
if (fullName != null) 'full_name': fullName,
if (birthday != null) 'birthday': birthday,
if (genderId != null) 'gender_id': genderId,
if (teacherPositionId != null) 'teacher_position_id': teacherPositionId,
if (locked != null) 'locked': locked,
if (active != null) 'active': active,
if (universityId != null) 'university_id': universityId,
if (countryId != null) 'country_id': countryId,
if (youtubeVideoCode != null) 'youtube_video_code': youtubeVideoCode,
if (email != null) 'email': email,
if (skype != null) 'skype': skype,
if (facebook != null) 'facebook': facebook,
if (phoneNumber != null) 'phone_number': phoneNumber,
if (description != null) 'description': description,
if (note != null) 'note': note,
if (imagePath != null) 'image_path': imagePath,
});
}