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