0.åç½®ã ä»äºã§AutoMapperã触ãæ©ä¼ãããã¾ããã è¦æ¸ã®ããã«ããã®è¨é²ãæ®ãã¦ããã¾ãã 1.AutoMapperã¨ã¯ è¦ç´ãã¼ã¹ã§å©ç¨ãããªãã¸ã§ã¯ã-ãªãã¸ã§ã¯ããããã¼ã§ãã ï¼A convention-based object-object mapper. ï¼ è±èªã®è¨³ããã®ã¾ã¾ããã DTOããEntityãViewModelã«ãã¼ã¿ãè©°ãç´ãæã«ä½¿ãã¾ãã è©°ãæ¿ããã³ã¼ããããããã¨æ¸ããªãã¦ãOKã¨ããããã§ããä¾ãã°ä»¥ä¸ã®ãããªã³ã¼ããããã¨ãã¾ãã // å¤æå ã SrcEmployee srcEmployee = ...; // å¤æå ã«ãè©°ãç´ãï¼ var destEmp = new DestEmployee { Name = srcEmp.Name, Age = Convert.ToInt32(srcEmp.Age), Status = Emplo
{{#tags}}- {{label}}
{{/tags}}