コード例 #1
0
        public virtual ApiVariableSetResponseModel MapBOToModel(
            BOVariableSet boVariableSet)
        {
            var model = new ApiVariableSetResponseModel();

            model.SetProperties(boVariableSet.Id, boVariableSet.IsFrozen, boVariableSet.JSON, boVariableSet.OwnerId, boVariableSet.RelatedDocumentIds, boVariableSet.Version);

            return(model);
        }
コード例 #2
0
        public virtual BOVariableSet MapEFToBO(
            VariableSet ef)
        {
            var bo = new BOVariableSet();

            bo.SetProperties(
                ef.Id,
                ef.IsFrozen,
                ef.JSON,
                ef.OwnerId,
                ef.RelatedDocumentIds,
                ef.Version);
            return(bo);
        }
コード例 #3
0
        public virtual VariableSet MapBOToEF(
            BOVariableSet bo)
        {
            VariableSet efVariableSet = new VariableSet();

            efVariableSet.SetProperties(
                bo.Id,
                bo.IsFrozen,
                bo.JSON,
                bo.OwnerId,
                bo.RelatedDocumentIds,
                bo.Version);
            return(efVariableSet);
        }
コード例 #4
0
        public virtual BOVariableSet MapModelToBO(
            string id,
            ApiVariableSetRequestModel model
            )
        {
            BOVariableSet boVariableSet = new BOVariableSet();

            boVariableSet.SetProperties(
                id,
                model.IsFrozen,
                model.JSON,
                model.OwnerId,
                model.RelatedDocumentIds,
                model.Version);
            return(boVariableSet);
        }