public static void ToEntity(DT.ResourcePermission source, DB.ResourcePermission target) { if ((source != null) && (target != null)) { target.ResourceId = source.ResourceId; target.GrantedUserId = source.GrantedUserId; target.GrantedByUserId = source.GrantedByUserId; } }
public static void CopyToEntity(this DT.ResourcePermission source, DA.ResourcePermission target) { if ((source == null) || (target == null)) { return; } target.ResourceId = source.ResourceId; target.GrantedUserId = source.GrantedUserId; target.GrantedByUserId = source.GrantedByUserId; }
public static DB.ResourcePermission ToEntity(DT.ResourcePermission source) { if (source == null) { return(null); } var entity = new DB.ResourcePermission(); ToEntity(source, entity); return(entity); }
public static DA.ResourcePermission ToEntity(this DT.ResourcePermission source) { if (source == null) { return(null); } var result = new DA.ResourcePermission(); source.CopyToEntity(result); return(result); }