public virtual IOriginModel MapToModelLite(IOrigin entity, int currentDepth = 1)
        {
            currentDepth++;
            var model = NameableEntityMapper.MapToModelLite <IOrigin, OriginModel>(entity);

            // Origin Properties
            model.CharacterSet = entity.CharacterSet;
            // Related Objects
            // <None>
            // Return Entity
            return(model);
        }
        public virtual IPowerAliasModel MapToModelLite(IPowerAlias entity, int currentDepth = 1)
        {
            currentDepth++;
            var model = NameableEntityMapper.MapToModelLite <IPowerAlias, PowerAliasModel>(entity);

            // PowerAlias Properties
            // <None>
            // Related Objects
            model.PowerId = entity.PowerId;
            // Return Entity
            return(model);
        }
Beispiel #3
0
        public virtual IGenderModel MapToModelLite(IGender entity, int currentDepth = 1)
        {
            currentDepth++;
            var model = NameableEntityMapper.MapToModelLite <IGender, GenderModel>(entity);

            // Gender Properties
            // <None>
            // Related Objects
            // <None>
            // Return Entity
            return(model);
        }
Beispiel #4
0
        public virtual IStudioModel MapToModelLite(IStudio entity, int currentDepth = 1)
        {
            currentDepth++;
            var model = NameableEntityMapper.MapToModelLite <IStudio, StudioModel>(entity);

            // Studio Properties
            // <None>
            // Related Objects
            // <None>
            // Return Entity
            return(model);
        }
        public virtual IImageFileModel MapToModelLite(IImageFile entity, int currentDepth = 1)
        {
            currentDepth++;
            var model = NameableEntityMapper.MapToModelLite <IImageFile, ImageFileModel>(entity);

            // ImageFile Properties
            // <None>
            // Related Objects
            // <None>
            // Return Entity
            return(model);
        }
Beispiel #6
0
        public virtual IResourceTypeModel MapToModelLite(IResourceType entity, int currentDepth = 1)
        {
            currentDepth++;
            var model = NameableEntityMapper.MapToModelLite <IResourceType, ResourceTypeModel>(entity);

            // ResourceType Properties
            model.DetailResourceName = entity.DetailResourceName;
            model.ListResourceName   = entity.ListResourceName;
            // Related Objects
            // <None>
            // Return Entity
            return(model);
        }
        public virtual ILocationModel MapToModelLite(ILocation entity, int currentDepth = 1)
        {
            currentDepth++;
            var model = NameableEntityMapper.MapToModelLite <ILocation, LocationModel>(entity);

            // Location Properties
            model.StartYear = entity.StartYear;
            // Related Objects
            model.FirstIssueAppearanceId = entity.FirstIssueAppearanceId;
            model.PrimaryImageFileId     = entity.PrimaryImageFileId;
            // Return Entity
            return(model);
        }
        public virtual IChatModel MapToModelLite(IChat entity, int currentDepth = 1)
        {
            currentDepth++;
            var model = NameableEntityMapper.MapToModelLite <IChat, ChatModel>(entity);

            // Chat Properties
            model.ChannelName  = entity.ChannelName;
            model.PasswordHash = entity.PasswordHash;
            // Related Objects
            model.ImageFileId = entity.ImageFileId;
            // Return Entity
            return(model);
        }
Beispiel #9
0
        public virtual IPromoModel MapToModelLite(IPromo entity, int currentDepth = 1)
        {
            currentDepth++;
            var model = NameableEntityMapper.MapToModelLite <IPromo, PromoModel>(entity);

            // Promo Properties
            model.Link = entity.Link;
            // Related Objects
            model.PrimaryImageFileId = entity.PrimaryImageFileId;
            model.AuthorId           = entity.AuthorId;
            model.ResourceTypeId     = entity.ResourceTypeId;
            // Return Entity
            return(model);
        }
Beispiel #10
0
        public virtual IPublisherModel MapToModelLite(IPublisher entity, int currentDepth = 1)
        {
            currentDepth++;
            var model = NameableEntityMapper.MapToModelLite <IPublisher, PublisherModel>(entity);

            // Publisher Properties
            model.LocationAddress = entity.LocationAddress;
            model.LocationCity    = entity.LocationCity;
            model.LocationState   = entity.LocationState;
            // Related Objects
            model.PrimaryImageFileId = entity.PrimaryImageFileId;
            // Return Entity
            return(model);
        }
Beispiel #11
0
        public virtual ISeriesModel MapToModelLite(ISeries entity, int currentDepth = 1)
        {
            currentDepth++;
            var model = NameableEntityMapper.MapToModelLite <ISeries, SeriesModel>(entity);

            // Series Properties
            model.Startyear = entity.Startyear;
            // Related Objects
            model.PublisherId    = entity.PublisherId;
            model.FirstEpisodeId = entity.FirstEpisodeId;
            model.LastEpisodeId  = entity.LastEpisodeId;
            // Return Entity
            return(model);
        }
        public virtual ITeamModel MapToModelLite(ITeam entity, int currentDepth = 1)
        {
            currentDepth++;
            var model = NameableEntityMapper.MapToModelLite <ITeam, TeamModel>(entity);

            // Team Properties
            // <None>
            // Related Objects
            model.PrimaryImageFileId     = entity.PrimaryImageFileId;
            model.FirstIssueAppearanceId = entity.FirstIssueAppearanceId;
            model.PublisherId            = entity.PublisherId;
            // Return Entity
            return(model);
        }
Beispiel #13
0
        public virtual IVolumeModel MapToModelLite(IVolume entity, int currentDepth = 1)
        {
            currentDepth++;
            var model = NameableEntityMapper.MapToModelLite <IVolume, VolumeModel>(entity);

            // Volume Properties
            model.Startyear = entity.Startyear;
            // Related Objects
            model.PrimaryImageFileId = entity.PrimaryImageFileId;
            model.FirstIssueId       = entity.FirstIssueId;
            model.LastIssueId        = entity.LastIssueId;
            model.PublisherId        = entity.PublisherId;
            // Return Entity
            return(model);
        }
Beispiel #14
0
        public virtual IIssueModel MapToModelLite(IIssue entity, int currentDepth = 1)
        {
            currentDepth++;
            var model = NameableEntityMapper.MapToModelLite <IIssue, IssueModel>(entity);

            // Issue Properties
            model.HasStaffReview = entity.HasStaffReview;
            model.CoverDate      = entity.CoverDate;
            model.StoreDate      = entity.StoreDate;
            model.IssueNumber    = entity.IssueNumber;
            // Related Objects
            model.PrimaryImageFileId = entity.PrimaryImageFileId;
            model.VolumeId           = entity.VolumeId;
            // Return Entity
            return(model);
        }
        public virtual ICharacterModel MapToModelLite(ICharacter entity, int currentDepth = 1)
        {
            currentDepth++;
            var model = NameableEntityMapper.MapToModelLite <ICharacter, CharacterModel>(entity);

            // Character Properties
            model.RealName    = entity.RealName;
            model.DateOfBirth = entity.DateOfBirth;
            // Related Objects
            model.PrimaryImageFileId     = entity.PrimaryImageFileId;
            model.FirstIssueAppearanceId = entity.FirstIssueAppearanceId;
            model.GenderId    = entity.GenderId;
            model.OriginId    = entity.OriginId;
            model.PublisherId = entity.PublisherId;
            // Return Entity
            return(model);
        }
Beispiel #16
0
        public virtual IEpisodeModel MapToModelLite(IEpisode entity, int currentDepth = 1)
        {
            currentDepth++;
            var model = NameableEntityMapper.MapToModelLite <IEpisode, EpisodeModel>(entity);

            // Episode Properties
            model.HasStaffReview = entity.HasStaffReview;
            model.AirDate        = entity.AirDate;
            model.EpisodeCode    = entity.EpisodeCode;
            model.SeasonNumber   = entity.SeasonNumber;
            model.EpisodeNumber  = entity.EpisodeNumber;
            // Related Objects
            model.PrimaryImageFileId = entity.PrimaryImageFileId;
            model.SeriesId           = entity.SeriesId;
            // Return Entity
            return(model);
        }
        public virtual IPersonModel MapToModelLite(IPerson entity, int currentDepth = 1)
        {
            currentDepth++;
            var model = NameableEntityMapper.MapToModelLite <IPerson, PersonModel>(entity);

            // Person Properties
            model.Hometown  = entity.Hometown;
            model.Country   = entity.Country;
            model.Email     = entity.Email;
            model.Website   = entity.Website;
            model.BirthDate = entity.BirthDate;
            model.DeathDate = entity.DeathDate;
            // Related Objects
            model.PrimaryImageFileId = entity.PrimaryImageFileId;
            model.GenderId           = entity.GenderId;
            // Return Entity
            return(model);
        }
Beispiel #18
0
        public virtual IMovieModel MapToModelLite(IMovie entity, int currentDepth = 1)
        {
            currentDepth++;
            var model = NameableEntityMapper.MapToModelLite <IMovie, MovieModel>(entity);

            // Movie Properties
            model.HasStaffReview   = entity.HasStaffReview;
            model.Distributor      = entity.Distributor;
            model.BoxOfficeRevenue = entity.BoxOfficeRevenue;
            model.TotalRevenue     = entity.TotalRevenue;
            model.Budget           = entity.Budget;
            model.Rating           = entity.Rating;
            model.ReleaseDate      = entity.ReleaseDate;
            model.RunTime          = entity.RunTime;
            // Related Objects
            model.PrimaryImageFileId = entity.PrimaryImageFileId;
            // Return Entity
            return(model);
        }
        public virtual IVideoModel MapToModelLite(IVideo entity, int currentDepth = 1)
        {
            currentDepth++;
            var model = NameableEntityMapper.MapToModelLite <IVideo, VideoModel>(entity);

            // Video Properties
            model.LowUrl        = entity.LowUrl;
            model.HighUrl       = entity.HighUrl;
            model.HdUrl         = entity.HdUrl;
            model.Url           = entity.Url;
            model.LengthSeconds = entity.LengthSeconds;
            model.PublishDate   = entity.PublishDate;
            // Related Objects
            model.PrimaryImageFileId = entity.PrimaryImageFileId;
            model.AuthorId           = entity.AuthorId;
            model.VideoTypeId        = entity.VideoTypeId;
            // Return Entity
            return(model);
        }