mirror of
https://github.com/BeyondDimension/SteamTools.git
synced 2026-10-22 01:16:17 +08:00
27 lines
789 B
C#
27 lines
789 B
C#
using SQLite;
|
|
using System.Diagnostics;
|
|
using System.Diagnostics.CodeAnalysis;
|
|
using NotNull = System.Diagnostics.CodeAnalysis.NotNullAttribute;
|
|
using SQLiteNotNull = SQLite.NotNullAttribute;
|
|
using SQLiteTable = SQLite.TableAttribute;
|
|
|
|
namespace System.Application.Entities
|
|
{
|
|
[SQLiteTable("C2F5F5F5")]
|
|
[DebuggerDisplay("{DebuggerDisplay(),nq}")]
|
|
public sealed class KeyValuePair : IEntity<string>
|
|
{
|
|
[Column("B1E54167")]
|
|
[PrimaryKey]
|
|
[SQLiteNotNull]
|
|
[NotNull, DisallowNull] // C# 8 not null
|
|
public string? Id { get; set; }
|
|
|
|
[Column("70E8B6F4")]
|
|
[SQLiteNotNull]
|
|
[NotNull, DisallowNull] // C# 8 not null
|
|
public string? Value { get; set; }
|
|
|
|
string DebuggerDisplay() => $"{Id}, {Value}";
|
|
}
|
|
} |