コード例 #1
0
 public Ownership(uint gameId, uint id, string date, OwnershipState state, string accountId)
 {
     GameId         = gameId;
     OwnershipId    = id;
     RegisteredDate = date;
     State          = state;
     UserAccountId  = accountId;
 }
コード例 #2
0
ファイル: Database.cs プロジェクト: grahnskij/mtest
        public void NewOwnership(uint gameId, string date, OwnershipState state, string accountId)
        {
            var newOwnershipId  = (uint)(locOwnership.Count() + 1);
            var newOwnership    = new Ownership(gameId, newOwnershipId, date, state, accountId);
            var newLocOwnership = locOwnership.ToList();

            newLocOwnership.Add(newOwnership);
            locOwnership = newLocOwnership;
        }