public softwarecomponentreleaseDto(Int32 i_SoftwareComponentId, String v_SoftwareComponentVersion, Nullable <Int32> i_DeploymentFileId, Nullable <DateTime> d_ReleaseDate, String v_DatabaseVersionRequired, String v_ReleaseNotes, String v_AdditionalInformation1, String v_AdditionalInformation2, Nullable <Int32> i_IsPublished, Nullable <Int32> i_IsLastVersion, Nullable <DateTime> d_InsertDate, Nullable <DateTime> d_UpdateDate, deploymentfileDto deploymentfile)
 {
     this.i_SoftwareComponentId      = i_SoftwareComponentId;
     this.v_SoftwareComponentVersion = v_SoftwareComponentVersion;
     this.i_DeploymentFileId         = i_DeploymentFileId;
     this.d_ReleaseDate             = d_ReleaseDate;
     this.v_DatabaseVersionRequired = v_DatabaseVersionRequired;
     this.v_ReleaseNotes            = v_ReleaseNotes;
     this.v_AdditionalInformation1  = v_AdditionalInformation1;
     this.v_AdditionalInformation2  = v_AdditionalInformation2;
     this.i_IsPublished             = i_IsPublished;
     this.i_IsLastVersion           = i_IsLastVersion;
     this.d_InsertDate   = d_InsertDate;
     this.d_UpdateDate   = d_UpdateDate;
     this.deploymentfile = deploymentfile;
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Converts this instance of <see cref="deploymentfile"/> to an instance of <see cref="deploymentfileDto"/>.
        /// </summary>
        /// <param name="entity"><see cref="deploymentfile"/> to convert.</param>
        public static deploymentfileDto ToDTO(this deploymentfile entity)
        {
            if (entity == null)
            {
                return(null);
            }

            var dto = new deploymentfileDto();

            dto.i_DeploymentFileId               = entity.i_DeploymentFileId;
            dto.v_FileName                       = entity.v_FileName;
            dto.b_FileData                       = entity.b_FileData;
            dto.v_Description                    = entity.v_Description;
            dto.i_SoftwareComponentId            = entity.i_SoftwareComponentId;
            dto.v_TargetSoftwareComponentVersion = entity.v_TargetSoftwareComponentVersion;
            dto.v_PackageFiles                   = entity.v_PackageFiles;
            dto.r_PackageSizeKb                  = entity.r_PackageSizeKb;

            entity.OnDTO(dto);

            return(dto);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Converts this instance of <see cref="deploymentfileDto"/> to an instance of <see cref="deploymentfile"/>.
        /// </summary>
        /// <param name="dto"><see cref="deploymentfileDto"/> to convert.</param>
        public static deploymentfile ToEntity(this deploymentfileDto dto)
        {
            if (dto == null)
            {
                return(null);
            }

            var entity = new deploymentfile();

            entity.i_DeploymentFileId               = dto.i_DeploymentFileId;
            entity.v_FileName                       = dto.v_FileName;
            entity.b_FileData                       = dto.b_FileData;
            entity.v_Description                    = dto.v_Description;
            entity.i_SoftwareComponentId            = dto.i_SoftwareComponentId;
            entity.v_TargetSoftwareComponentVersion = dto.v_TargetSoftwareComponentVersion;
            entity.v_PackageFiles                   = dto.v_PackageFiles;
            entity.r_PackageSizeKb                  = dto.r_PackageSizeKb;

            dto.OnEntity(entity);

            return(entity);
        }
 /// <summary>
 /// Invoked when <see cref="ToEntity"/> operation is about to return.
 /// </summary>
 /// <param name="entity"><see cref="deploymentfile"/> converted from <see cref="deploymentfileDto"/>.</param>
 static partial void OnEntity(this deploymentfileDto dto, deploymentfile entity);
 /// <summary>
 /// Invoked when <see cref="ToDTO"/> operation is about to return.
 /// </summary>
 /// <param name="dto"><see cref="deploymentfileDto"/> converted from <see cref="deploymentfile"/>.</param>
 static partial void OnDTO(this deploymentfile entity, deploymentfileDto dto);