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