public bool Update(NoteUngVien data) { string id = $"{data.id_note_ung_vien}"; data.id_note_ung_vien = string.Empty; data.ngay_sua = XMedia.XUtil.TimeInEpoch(DateTime.Now); return(Update(_default_index, data, id)); }
public NoteUngVienUngVienMap(NoteUngVien note) { id_note_ung_vien = note.id_note_ung_vien; id_ung_vien = note.id_ung_vien; ghi_chu = note.ghi_chu; thuoc_tinh = note.thuoc_tinh; ngay_sua = note.ngay_sua; nguoi_tao = note.nguoi_tao; nguoi_sua = note.nguoi_sua; ngay_tao = note.ngay_tao; }
NoteUngVien ConvertDoc(IHit <NoteUngVien> hit) { NoteUngVien u = new NoteUngVien(); try { u = hit.Source; u.id_note_ung_vien = hit.Id; } catch { } return(u); }
public bool Index(NoteUngVien data) { int retry = 0; int max_retry = 5; bool need_retry = true; while (retry++ < max_retry && need_retry) { need_retry = !Index(_default_index, data, ""); if (need_retry) { Task.Delay(1000).Wait(); } } return(!need_retry); }
public static bool Update(NoteUngVien data) { return(NoteUngVienRepository.Instance.Update(data)); }
public static bool Index(NoteUngVien data) { return(NoteUngVienRepository.Instance.Index(data)); }