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

            bo.SetProperties(
                ef.Id,
                ef.CommunicationStyle,
                ef.EnvironmentIds,
                ef.Fingerprint,
                ef.IsDisabled,
                ef.JSON,
                ef.MachinePolicyId,
                ef.Name,
                ef.RelatedDocumentIds,
                ef.Roles,
                ef.TenantIds,
                ef.TenantTags,
                ef.Thumbprint);
            return(bo);
        }
コード例 #2
0
        public virtual BOMachine MapModelToBO(
            string id,
            ApiMachineRequestModel model
            )
        {
            BOMachine boMachine = new BOMachine();

            boMachine.SetProperties(
                id,
                model.CommunicationStyle,
                model.EnvironmentIds,
                model.Fingerprint,
                model.IsDisabled,
                model.JSON,
                model.MachinePolicyId,
                model.Name,
                model.RelatedDocumentIds,
                model.Roles,
                model.TenantIds,
                model.TenantTags,
                model.Thumbprint);
            return(boMachine);
        }