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 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); }