mirror of
https://github.com/BeyondDimension/SteamTools.git
synced 2026-10-28 05:56:52 +08:00
update readme.md migrate V2 1%
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
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}";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user