示例#1
0
        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);
        }