Exemple #1
0
        /// <summary>
        /// Converts this instance of <see cref="ges"/> to an instance of <see cref="gesDto"/>.
        /// </summary>
        /// <param name="entity"><see cref="ges"/> to convert.</param>
        public static gesDto ToDTO(this ges entity)
        {
            if (entity == null)
            {
                return(null);
            }

            var dto = new gesDto();

            dto.v_GesId        = entity.v_GesId;
            dto.v_AreaId       = entity.v_AreaId;
            dto.v_Name         = entity.v_Name;
            dto.i_IsDeleted    = entity.i_IsDeleted;
            dto.i_InsertUserId = entity.i_InsertUserId;
            dto.d_InsertDate   = entity.d_InsertDate;
            dto.i_UpdateUserId = entity.i_UpdateUserId;
            dto.d_UpdateDate   = entity.d_UpdateDate;

            entity.OnDTO(dto);

            return(dto);
        }
Exemple #2
0
        /// <summary>
        /// Converts this instance of <see cref="gesDto"/> to an instance of <see cref="ges"/>.
        /// </summary>
        /// <param name="dto"><see cref="gesDto"/> to convert.</param>
        public static ges ToEntity(this gesDto dto)
        {
            if (dto == null)
            {
                return(null);
            }

            var entity = new ges();

            entity.v_GesId        = dto.v_GesId;
            entity.v_AreaId       = dto.v_AreaId;
            entity.v_Name         = dto.v_Name;
            entity.i_IsDeleted    = dto.i_IsDeleted;
            entity.i_InsertUserId = dto.i_InsertUserId;
            entity.d_InsertDate   = dto.d_InsertDate;
            entity.i_UpdateUserId = dto.i_UpdateUserId;
            entity.d_UpdateDate   = dto.d_UpdateDate;

            dto.OnEntity(entity);

            return(entity);
        }
Exemple #3
0
 /// <summary>
 /// Invoked when <see cref="ToDTO"/> operation is about to return.
 /// </summary>
 /// <param name="dto"><see cref="gesDto"/> converted from <see cref="ges"/>.</param>
 static partial void OnDTO(this ges entity, gesDto dto);
Exemple #4
0
 /// <summary>
 /// Invoked when <see cref="ToEntity"/> operation is about to return.
 /// </summary>
 /// <param name="entity"><see cref="ges"/> converted from <see cref="gesDto"/>.</param>
 static partial void OnEntity(this gesDto dto, ges entity);
 public occupationDto(String v_OccupationId, String v_GesId, String v_GroupOccupationId, String v_Name, Nullable <Int32> i_IsDeleted, Nullable <Int32> i_InsertUserId, Nullable <DateTime> d_InsertDate, Nullable <Int32> i_UpdateUserId, Nullable <DateTime> d_UpdateDate, gesDto ges, groupoccupationDto groupoccupation)
 {
     this.v_OccupationId      = v_OccupationId;
     this.v_GesId             = v_GesId;
     this.v_GroupOccupationId = v_GroupOccupationId;
     this.v_Name          = v_Name;
     this.i_IsDeleted     = i_IsDeleted;
     this.i_InsertUserId  = i_InsertUserId;
     this.d_InsertDate    = d_InsertDate;
     this.i_UpdateUserId  = i_UpdateUserId;
     this.d_UpdateDate    = d_UpdateDate;
     this.ges             = ges;
     this.groupoccupation = groupoccupation;
 }