示例#1
0
 public rolenodeprofileDto(Int32 i_NodeId, Int32 i_RoleId, Int32 i_ApplicationHierarchyId, Nullable <Int32> i_IsDeleted, Nullable <Int32> i_InsertUserId, Nullable <DateTime> d_InsertDate, Nullable <Int32> i_UpdateUserId, Nullable <DateTime> d_UpdateDate, applicationhierarchyDto applicationhierarchy, rolenodeDto rolenode)
 {
     this.i_NodeId = i_NodeId;
     this.i_RoleId = i_RoleId;
     this.i_ApplicationHierarchyId = i_ApplicationHierarchyId;
     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.applicationhierarchy = applicationhierarchy;
     this.rolenode             = rolenode;
 }
 public rolenodecomponentprofileDto(String v_RoleNodeComponentId, Nullable <Int32> i_NodeId, Nullable <Int32> i_RoleId, String v_ComponentId, Nullable <Int32> i_Read, Nullable <Int32> i_Write, Nullable <Int32> i_Dx, Nullable <Int32> i_Approved, Nullable <Int32> i_IsDeleted, Nullable <Int32> i_InsertUserId, Nullable <DateTime> d_InsertDate, Nullable <Int32> i_UpdateUserId, Nullable <DateTime> d_UpdateDate, componentDto component, rolenodeDto rolenode)
 {
     this.v_RoleNodeComponentId = v_RoleNodeComponentId;
     this.i_NodeId       = i_NodeId;
     this.i_RoleId       = i_RoleId;
     this.v_ComponentId  = v_ComponentId;
     this.i_Read         = i_Read;
     this.i_Write        = i_Write;
     this.i_Dx           = i_Dx;
     this.i_Approved     = i_Approved;
     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.component      = component;
     this.rolenode       = rolenode;
 }
示例#3
0
        /// <summary>
        /// Converts this instance of <see cref="rolenode"/> to an instance of <see cref="rolenodeDto"/>.
        /// </summary>
        /// <param name="entity"><see cref="rolenode"/> to convert.</param>
        public static rolenodeDto ToDTO(this rolenode entity)
        {
            if (entity == null)
            {
                return(null);
            }

            var dto = new rolenodeDto();

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

            var entity = new rolenode();

            entity.i_NodeId       = dto.i_NodeId;
            entity.i_RoleId       = dto.i_RoleId;
            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);
        }
示例#5
0
 /// <summary>
 /// Invoked when <see cref="ToEntity"/> operation is about to return.
 /// </summary>
 /// <param name="entity"><see cref="rolenode"/> converted from <see cref="rolenodeDto"/>.</param>
 static partial void OnEntity(this rolenodeDto dto, rolenode entity);
示例#6
0
 /// <summary>
 /// Invoked when <see cref="ToDTO"/> operation is about to return.
 /// </summary>
 /// <param name="dto"><see cref="rolenodeDto"/> converted from <see cref="rolenode"/>.</param>
 static partial void OnDTO(this rolenode entity, rolenodeDto dto);
 public systemuserrolenodeDto(Int32 i_SystemUserId, Int32 i_NodeId, Int32 i_RoleId, Nullable <Int32> i_IsDeleted, Nullable <Int32> i_InsertUserId, Nullable <DateTime> d_InsertDate, Nullable <Int32> i_UpdateUserId, Nullable <DateTime> d_UpdateDate, String v_ComentaryUpdate, rolenodeDto rolenode, systemuserDto systemuser)
 {
     this.i_SystemUserId    = i_SystemUserId;
     this.i_NodeId          = i_NodeId;
     this.i_RoleId          = i_RoleId;
     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.v_ComentaryUpdate = v_ComentaryUpdate;
     this.rolenode          = rolenode;
     this.systemuser        = systemuser;
 }