コード例 #1
0
        public virtual Culture MapBOToEF(
            BOCulture bo)
        {
            Culture efCulture = new Culture();

            efCulture.SetProperties(
                bo.CultureID,
                bo.ModifiedDate,
                bo.Name);
            return(efCulture);
        }
コード例 #2
0
        public virtual BOCulture MapEFToBO(
            Culture ef)
        {
            var bo = new BOCulture();

            bo.SetProperties(
                ef.CultureID,
                ef.ModifiedDate,
                ef.Name);
            return(bo);
        }
コード例 #3
0
        public virtual BOCulture MapModelToBO(
            string cultureID,
            ApiCultureRequestModel model
            )
        {
            BOCulture boCulture = new BOCulture();

            boCulture.SetProperties(
                cultureID,
                model.ModifiedDate,
                model.Name);
            return(boCulture);
        }