public static GaUser Create(IGaUser src) { return(new GaUser { ClientId = src.ClientId, TrackerUserId = src.TrackerUserId, Cid = src.Cid }); }
public static GaUserEntity Create(IGaUser src) { return(new GaUserEntity { PartitionKey = GeneratePartitionKey(), RowKey = GenerateRowKey(src.ClientId), ClientId = src.ClientId, TrackerUserId = src.TrackerUserId, Cid = src.Cid }); }
public async Task AddAsync(IGaUser client) { await _tableStorage.InsertOrMergeAsync(GaUserEntity.Create(client)); }