feat: add student master data import
This commit is contained in:
1 parent
9286bfa3b5
commit
37f4fee574
18 files changed
+2359
-13
No files matched your search
@@ -37,6 +37,8 @@ public class StudentRepository(LiteDbContext db) : IStudentRepository
|
||||
db.Documentation.Count(d => d.StudentId == studentId));
|
||||
public void Save(Student s)
|
||||
{
|
||||
s.ExternalIds ??= [];
|
||||
s.Contacts ??= [];
|
||||
s.UpdatedAt = DateTime.UtcNow;
|
||||
db.Students.Upsert(s);
|
||||
db.OnChange?.Invoke(nameof(Student), s.Id.ToString(), "Save", s);
|
||||
|
||||
Reference in new issue
Block a user