This commit is contained in:
@@ -128,7 +128,8 @@ namespace AyaNova.Biz
|
||||
//
|
||||
internal async Task<PartAssembly> GetAsync(long id, bool logTheGetEvent = true)
|
||||
{
|
||||
var ret = await ct.PartAssembly.SingleOrDefaultAsync(m => m.Id == id);
|
||||
//.Include(w => w.Items)
|
||||
var ret = await ct.PartAssembly.AsNoTracking().Include(z=>z.Items).SingleOrDefaultAsync(m => m.Id == id);
|
||||
if (logTheGetEvent && ret != null)
|
||||
await EventLogProcessor.LogEventToDatabaseAsync(new Event(UserId, id, BizType, AyaEvent.Retrieved), ct);
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user