コード例 #1
0
        public virtual BOUser MapEFToBO(
            User ef)
        {
            var bo = new BOUser();

            bo.SetProperties(
                ef.Id,
                ef.AboutMe,
                ef.AccountId,
                ef.Age,
                ef.CreationDate,
                ef.DisplayName,
                ef.DownVote,
                ef.EmailHash,
                ef.LastAccessDate,
                ef.Location,
                ef.Reputation,
                ef.UpVote,
                ef.View,
                ef.WebsiteUrl);
            return(bo);
        }
コード例 #2
0
        public virtual BOUser MapModelToBO(
            int id,
            ApiUserRequestModel model
            )
        {
            BOUser boUser = new BOUser();

            boUser.SetProperties(
                id,
                model.AboutMe,
                model.AccountId,
                model.Age,
                model.CreationDate,
                model.DisplayName,
                model.DownVote,
                model.EmailHash,
                model.LastAccessDate,
                model.Location,
                model.Reputation,
                model.UpVote,
                model.View,
                model.WebsiteUrl);
            return(boUser);
        }