public rolcuotadetalleDto(String v_RolCuotaDetalleId, String v_IdProducto, String v_ProductoNombre, String v_RolCuotaId, Nullable<Int32> i_Cuota, Nullable<Int32> i_IsDeleted, Nullable<Int32> i_InsertUserId, Nullable<DateTime> d_InsertDate, Nullable<Int32> i_UpdateUserId, Nullable<DateTime> d_UpdateDate, rolcuotaDto rolcuota)
        {
			this.v_RolCuotaDetalleId = v_RolCuotaDetalleId;
			this.v_IdProducto = v_IdProducto;
			this.v_ProductoNombre = v_ProductoNombre;
			this.v_RolCuotaId = v_RolCuotaId;
			this.i_Cuota = i_Cuota;
			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.rolcuota = rolcuota;
        }
示例#2
0
        /// <summary>
        /// Converts this instance of <see cref="rolcuota"/> to an instance of <see cref="rolcuotaDto"/>.
        /// </summary>
        /// <param name="entity"><see cref="rolcuota"/> to convert.</param>
        public static rolcuotaDto ToDTO(this rolcuota entity)
        {
            if (entity == null)
            {
                return(null);
            }

            var dto = new rolcuotaDto();

            dto.v_RolCuotaId   = entity.v_RolCuotaId;
            dto.i_RolId        = entity.i_RolId;
            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);
        }
示例#3
0
        /// <summary>
        /// Converts this instance of <see cref="rolcuotaDto"/> to an instance of <see cref="rolcuota"/>.
        /// </summary>
        /// <param name="dto"><see cref="rolcuotaDto"/> to convert.</param>
        public static rolcuota ToEntity(this rolcuotaDto dto)
        {
            if (dto == null)
            {
                return(null);
            }

            var entity = new rolcuota();

            entity.v_RolCuotaId   = dto.v_RolCuotaId;
            entity.i_RolId        = dto.i_RolId;
            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);
        }
示例#4
0
 /// <summary>
 /// Invoked when <see cref="ToEntity"/> operation is about to return.
 /// </summary>
 /// <param name="entity"><see cref="rolcuota"/> converted from <see cref="rolcuotaDto"/>.</param>
 static partial void OnEntity(this rolcuotaDto dto, rolcuota entity);
示例#5
0
 /// <summary>
 /// Invoked when <see cref="ToDTO"/> operation is about to return.
 /// </summary>
 /// <param name="dto"><see cref="rolcuotaDto"/> converted from <see cref="rolcuota"/>.</param>
 static partial void OnDTO(this rolcuota entity, rolcuotaDto dto);