update readme.md migrate V2 1%

This commit is contained in:
Aigio Liu
2021-02-23 19:04:52 +08:00
parent a85f977ccf
commit abf92e98d0
21 changed files with 309 additions and 37 deletions
@@ -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}";
}
}