public async Task UpdateAsync(TextFile aFile) { if (aFile.IsDirty) m_context.Entry(aFile).State = EntityState.Modified; await m_context.SaveChangesAsync(); }
public TextFile NewFile() { var textFile = new TextFile(); m_context.Files.Add(textFile); return textFile; }