Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Common/VersionHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using System.Diagnostics;
using System.Net.Http.Headers;
using System.Net.Http.Json;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Text;

Expand Down
2 changes: 1 addition & 1 deletion DatabaseTools/Services/CallbackTextWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public override void Flush()
}

var line = _buffer.ToString();
_buffer.Clear();
_ = _buffer.Clear();
_onLine(line);
}
}
16 changes: 16 additions & 0 deletions Definitions/Database/Base/DbCoreObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,20 @@ public abstract class DbCoreObject : DbIdObject, IDbName, IDbDescription, IDbMet
public DateOnly UploadedDate { get; set; }

#endregion

#region Ownership

/// <summary>
/// The user who owns (uploaded) this object.
/// <see langword="null"/> for objects not owned by any user (e.g. imported/vanilla).
/// </summary>
public UniqueObjectId? OwnerUserId { get; set; }

/// <summary>
/// Navigation property to the owning user.
/// </summary>
[ForeignKey(nameof(OwnerUserId))]
public TblUser? OwnerUser { get; set; }

#endregion
}
Loading