public static void ToEntity(DT.JobPermission source, DB.JobPermission target) { if ((source != null) && (target != null)) { target.JobId = source.JobId; target.GrantedUserId = source.GrantedUserId; target.GrantedByUserId = source.GrantedByUserId; target.Permission = Convert.ToEntity(source.Permission); } }
public static DB.JobPermission ToEntity(DT.JobPermission source) { if (source == null) { return(null); } var entity = new DB.JobPermission(); ToEntity(source, entity); return(entity); }
public static DT.JobPermission ToDto(DB.JobPermission source) { if (source == null) { return(null); } return(new DT.JobPermission { JobId = source.JobId, GrantedUserId = source.GrantedUserId, GrantedByUserId = source.GrantedByUserId, Permission = Convert.ToDto(source.Permission) }); }
public static void CopyToEntity(this DT.JobPermission source, DA.JobPermission target) { if ((source == null) || (target == null)) { return; } target.JobId = source.JobId; target.GrantedUserId = source.GrantedUserId; target.GrantedByUserId = source.GrantedByUserId; target.Permission = source.Permission.ToEntity(); }
public static DA.JobPermission ToEntity(this DT.JobPermission source) { if (source == null) { return(null); } var result = new DA.JobPermission(); source.CopyToEntity(result); return(result); }
public static DT.JobPermission ToDto(this DA.JobPermission source) { if (source == null) { return(null); } return(new DT.JobPermission { JobId = source.JobId, GrantedUserId = source.GrantedUserId, GrantedByUserId = source.GrantedByUserId, Permission = source.Permission.ToDto() }); }
public static DB.JobPermission ToEntity(DT.JobPermission source) { if (source == null) return null; var entity = new DB.JobPermission(); ToEntity(source, entity); return entity; }
public static DA.JobPermission ToEntity(this DT.JobPermission source) { if (source == null) return null; var result = new DA.JobPermission(); source.CopyToEntity(result); return result; }
partial void DeleteJobPermission(JobPermission instance);
partial void UpdateJobPermission(JobPermission instance);
partial void InsertJobPermission(JobPermission instance);
private void detach_HiveExperimentPermissions(JobPermission entity) { this.SendPropertyChanging(); entity.Job = null; }