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; }
/// <summary> /// Converts this instance of <see cref="groupoccupation"/> to an instance of <see cref="groupoccupationDto"/>. /// </summary> /// <param name="entity"><see cref="groupoccupation"/> to convert.</param> public static groupoccupationDto ToDTO(this groupoccupation entity) { if (entity == null) { return(null); } var dto = new groupoccupationDto(); dto.v_GroupOccupationId = entity.v_GroupOccupationId; dto.v_LocationId = entity.v_LocationId; 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); }
/// <summary> /// Converts this instance of <see cref="groupoccupationDto"/> to an instance of <see cref="groupoccupation"/>. /// </summary> /// <param name="dto"><see cref="groupoccupationDto"/> to convert.</param> public static groupoccupation ToEntity(this groupoccupationDto dto) { if (dto == null) { return(null); } var entity = new groupoccupation(); entity.v_GroupOccupationId = dto.v_GroupOccupationId; entity.v_LocationId = dto.v_LocationId; 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); }
/// <summary> /// Invoked when <see cref="ToEntity"/> operation is about to return. /// </summary> /// <param name="entity"><see cref="groupoccupation"/> converted from <see cref="groupoccupationDto"/>.</param> static partial void OnEntity(this groupoccupationDto dto, groupoccupation entity);
/// <summary> /// Invoked when <see cref="ToDTO"/> operation is about to return. /// </summary> /// <param name="dto"><see cref="groupoccupationDto"/> converted from <see cref="groupoccupation"/>.</param> static partial void OnDTO(this groupoccupation entity, groupoccupationDto dto);