45 lines
1.3 KiB
C#
45 lines
1.3 KiB
C#
//using System;
|
|
//using System.Collections.Generic;
|
|
//using System.Linq;
|
|
//using System.Text;
|
|
//using System.Threading.Tasks;
|
|
//using Amazon.DynamoDBv2.DocumentModel;
|
|
//using Newtonsoft.Json;
|
|
|
|
//namespace ServerCommon.DB
|
|
//{
|
|
// public class NickNameEntityAttr
|
|
// {
|
|
// public string AccountGuid = string.Empty;
|
|
// public string AccountId = string.Empty;
|
|
// }
|
|
// public class NickNameEntity
|
|
// {
|
|
// public string PK_NickName { get; private set; } = string.Empty;
|
|
// public string SK_Empty { get; private set; } = string.Empty;
|
|
|
|
// public NickNameEntityAttr Attr { get; private set; } = new();
|
|
|
|
// public NickNameEntity()
|
|
// {
|
|
|
|
// }
|
|
// public NickNameEntity(Document document)
|
|
// {
|
|
// ReadFrom(document);
|
|
// }
|
|
|
|
// void ReadFrom(Document document)
|
|
// {
|
|
// PK_NickName = document["PK"].AsString().Replace(MainDB.GetPKPrefix(EEntityType.NickName), "");
|
|
// SK_Empty = document["SK"].AsString().Replace(MainDB.GetSKPrefix(EEntityType.NickName), "");
|
|
|
|
// NickNameEntityAttr? attr = JsonConvert.DeserializeObject<NickNameEntityAttr>(document["Attr"].AsString());
|
|
// if (attr == null)
|
|
// throw new Exception("Attr DeserializeObject error");
|
|
|
|
// Attr = attr;
|
|
// }
|
|
// }
|
|
//}
|