コード例 #1
0
 public static Entities.Category MapCategory(Logic.Objects.Base_Objects.Logging.Category logicCategory)
 {
     Entities.Category contextCategory = new Entities.Category()
     {
         CategoryId          = logicCategory.categoryID,
         CategoryName        = logicCategory.categoryName,
         CategoryDescription = logicCategory.categoryDescription
     };
     return(contextCategory);
 }
コード例 #2
0
 public static Logic.Objects.Base_Objects.Logging.Category MapCategory(Entities.Category contextCategory)
 {
     Logic.Objects.Base_Objects.Logging.Category logicCategory = new Logic.Objects.Base_Objects.Logging.Category()
     {
         categoryID          = contextCategory.CategoryId,
         categoryName        = contextCategory.CategoryName,
         categoryDescription = contextCategory.CategoryDescription
     };
     return(logicCategory);
 }