Rename ConcurrencyToken to Concurrency

This commit is contained in:
2020-05-13 19:54:41 +00:00
parent 6a9984720d
commit 539d590ce8
96 changed files with 144 additions and 144 deletions

View File

@@ -56,7 +56,7 @@ namespace AyaNova.Api.Controllers
public class UpdateAttachmentInfo
{
[Required]
public uint ConcurrencyToken { get; set; }
public uint Concurrency { get; set; }
[Required]
public string DisplayFileName { get; set; }
public string Notes { get; set; }
@@ -114,7 +114,7 @@ namespace AyaNova.Api.Controllers
//Set "original" value of concurrency token to input token
//this will allow EF to check it out
ct.Entry(dbObj).OriginalValues["ConcurrencyToken"] = inObj.ConcurrencyToken;
ct.Entry(dbObj).OriginalValues["Concurrency"] = inObj.Concurrency;
//Log event and save context
await EventLogProcessor.LogEventToDatabaseAsync(new Event(UserId, dbObj.AttachToObjectId, dbObj.AttachToObjectType, AyaEvent.AttachmentModified, ChangeTextra), ct);
@@ -492,7 +492,7 @@ namespace AyaNova.Api.Controllers
async private Task<object> GetFileListForObjectAsync(AyaType ayaType, long ayaId)
{
var l = await ct.FileAttachment.AsNoTracking().Where(m => m.AttachToObjectId == ayaId && m.AttachToObjectType == ayaType)
.Select(m => new { m.Id, m.ConcurrencyToken, m.ContentType, m.DisplayFileName, m.LastModified, m.Notes })
.Select(m => new { m.Id, m.Concurrency, m.ContentType, m.DisplayFileName, m.LastModified, m.Notes })
.ToArrayAsync();
var v = l.OrderBy(m => m.DisplayFileName);
return v;