/// <summary> /// Converts this instance of <see cref="productsformigration"/> to an instance of <see cref="productsformigrationDto"/>. /// </summary> /// <param name="entity"><see cref="productsformigration"/> to convert.</param> public static productsformigrationDto ToDTO(this productsformigration entity) { if (entity == null) { return(null); } var dto = new productsformigrationDto(); dto.i_ProductForMigrationId = entity.i_ProductForMigrationId; dto.v_WarehouseId = entity.v_WarehouseId; dto.v_ProductId = entity.v_ProductId; dto.i_CategoryId = entity.i_CategoryId; dto.v_Name = entity.v_Name; dto.r_StockMin = entity.r_StockMin; dto.r_StockMax = entity.r_StockMax; dto.r_StockActual = entity.r_StockActual; dto.i_MovementTypeId = entity.i_MovementTypeId; dto.v_MovementType = entity.v_MovementType; dto.i_MotiveTypeId = entity.i_MotiveTypeId; dto.v_MotiveType = entity.v_MotiveType; dto.d_MovementDate = entity.d_MovementDate; dto.d_InsertDate = entity.d_InsertDate; entity.OnDTO(dto); return(dto); }
/// <summary> /// Converts this instance of <see cref="productsformigrationDto"/> to an instance of <see cref="productsformigration"/>. /// </summary> /// <param name="dto"><see cref="productsformigrationDto"/> to convert.</param> public static productsformigration ToEntity(this productsformigrationDto dto) { if (dto == null) { return(null); } var entity = new productsformigration(); entity.i_ProductForMigrationId = dto.i_ProductForMigrationId; entity.v_WarehouseId = dto.v_WarehouseId; entity.v_ProductId = dto.v_ProductId; entity.i_CategoryId = dto.i_CategoryId; entity.v_Name = dto.v_Name; entity.r_StockMin = dto.r_StockMin; entity.r_StockMax = dto.r_StockMax; entity.r_StockActual = dto.r_StockActual; entity.i_MovementTypeId = dto.i_MovementTypeId; entity.v_MovementType = dto.v_MovementType; entity.i_MotiveTypeId = dto.i_MotiveTypeId; entity.v_MotiveType = dto.v_MotiveType; entity.d_MovementDate = dto.d_MovementDate; entity.d_InsertDate = dto.d_InsertDate; dto.OnEntity(entity); return(entity); }
/// <summary> /// Invoked when <see cref="ToEntity"/> operation is about to return. /// </summary> /// <param name="entity"><see cref="productsformigration"/> converted from <see cref="productsformigrationDto"/>.</param> static partial void OnEntity(this productsformigrationDto dto, productsformigration entity);
/// <summary> /// Invoked when <see cref="ToDTO"/> operation is about to return. /// </summary> /// <param name="dto"><see cref="productsformigrationDto"/> converted from <see cref="productsformigration"/>.</param> static partial void OnDTO(this productsformigration entity, productsformigrationDto dto);