コード例 #1
0
        public static List <StopDTO> ConvertEntityToModel(IEnumerable <Stop> stops)
        {
            var stopModelList = new List <StopDTO>();

            foreach (var stop in stops)
            {
                stopModelList.Add(AutoMapperContainer.GenericConvert <StopDTO>(stop));
            }
            return(stopModelList);
        }
コード例 #2
0
 public static TEntity UpdateEntityFromModel <TEntity, TModel>(TEntity entity, TModel model)
 {
     return(AutoMapperContainer.GenericConvert <TModel, TEntity>(model, entity));
 }
コード例 #3
0
 public static TEntity ConvertModelToEntity <TEntity, TModel>(TModel model)
 {
     return(AutoMapperContainer.GenericConvert <TEntity>(model));
 }
コード例 #4
0
 public static TModel ConvertEntityToModel <TEntity, TModel>(TEntity entity)
 {
     return(AutoMapperContainer.GenericConvert <TModel>(entity));
 }
コード例 #5
0
 public static Stop ConvertModelToEntity(StopDTO stopModel)
 {
     return(AutoMapperContainer.GenericConvert <Stop>(stopModel));
 }
コード例 #6
0
 public static Stop UpdateModel <T>(T model, Stop stop)
 {
     return(AutoMapperContainer.GenericConvert <T, Stop>(model, stop));
 }
コード例 #7
0
 public static Stop ConvertModelToEntity <T>(T model)
 {
     return(AutoMapperContainer.GenericConvert <Stop>(model));
 }
コード例 #8
0
 public static T ConvertEntityToModel <T>(Stop stop)
 {
     return(AutoMapperContainer.GenericConvert <T>(stop));
 }
コード例 #9
0
 public static Stop ConvertUpdateModelToEntity(StopForUpdateDTO stopInput)
 {
     return(AutoMapperContainer.GenericConvert <Stop>(stopInput));
 }
コード例 #10
0
 public static Stop ConvertCreationModelToEntity(StopForCreationDTO stopInput)
 {
     return(AutoMapperContainer.GenericConvert <Stop>(stopInput));
 }
コード例 #11
0
 public static StopDTO ConvertEntityToModel(Stop stop)
 {
     return(AutoMapperContainer.GenericConvert <StopDTO>(stop));
 }