コード例 #1
0
ファイル: EntityDataAccess.cs プロジェクト: ruudkok/MoCS
        private e.Tournament CreateEntityFromTournament(Tournament t)
        {
            if (t == null)
            {
                return(null);
            }

            e.Tournament result = e.Tournament.CreateTournament(t.Id, t.Name, t.CreateDate);

            return(result);
        }
コード例 #2
0
        private Tournament CreateTournamentFromEntity(e.Tournament eTournament)
        {
            if (eTournament == null)
            {
                return(null);
            }
            Tournament result = new Tournament()
            {
                CreateDate = eTournament.CreateDate,
                Id         = eTournament.Id,
                Name       = eTournament.Name
            };

            return(result);
        }
コード例 #3
0
        private e.Tournament CreateEntityFromTournament(Tournament t)
        {
            if (t == null)
            {
                return(null);
            }
            e.Tournament result = e.Tournament.CreateTournament(t.Id, t.Name, t.CreateDate);

            //e.Tournament result = new e.Tournament()
            //{
            //    CreateDate = t.CreateDate,
            //    Id = t.Id,
            //    Name = t.Name
            //};

            return(result);
        }