コード例 #1
0
ファイル: Mapper.cs プロジェクト: onetug/CodeCamp2012
        public static Track AsTrack(this OCC.Data.Track t)
        {
            Track track = new Track()
            {
                ID = t.ID,
                Name = t.Name,
                Description = t.Description
            };

            return track;
        }
コード例 #2
0
ファイル: Mapper.cs プロジェクト: slobo80/WebSite
        public static Track AsTrackWithSessions(this Data.Track t)
        {
            Track track = new Track()
            {
                ID = t.ID,
                EventID = t.Event_ID,
                Name = t.Name,
                Description = t.Description
            };

            foreach (var sesion in t.Sessions)
                track.Sessions.Add(sesion.Map());

            return track;
        }
コード例 #3
0
ファイル: Mapper.cs プロジェクト: slobo80/WebSite
        public static Track Map(this Data.Track t)
        {
            Track track = new Track()
            {
                ID = t.ID,
                EventID = t.Event_ID,
                Name = t.Name,
                Description = t.Description
            };

            return track;
        }