public static void ToEntity(DT.SlaveGroup source, DB.SlaveGroup target) { if ((source != null) && (target != null)) { target.ResourceId = source.Id; target.Name = source.Name; target.ParentResourceId = source.ParentResourceId; target.HbInterval = source.HbInterval; target.OwnerUserId = source.OwnerUserId; } }
public static DB.SlaveGroup ToEntity(DT.SlaveGroup source) { if (source == null) { return(null); } var entity = new DB.SlaveGroup(); ToEntity(source, entity); return(entity); }
public static DT.SlaveGroup ToDto(DB.SlaveGroup source) { if (source == null) { return(null); } return(new DT.SlaveGroup { Id = source.ResourceId, Name = source.Name, ParentResourceId = source.ParentResourceId, HbInterval = source.HbInterval, OwnerUserId = source.OwnerUserId }); }
public static DA.SlaveGroup ToEntity(this DT.SlaveGroup source) { if (source == null) { return(null); } var result = new DA.SlaveGroup(); source.CopyToEntity(result); return(result); }
public static void CopyToEntity(this DT.SlaveGroup source, DA.SlaveGroup target) { if ((source == null) || (target == null)) { return; } target.ResourceId = source.Id; target.Name = source.Name; target.ParentResourceId = source.ParentResourceId; target.HbInterval = source.HbInterval; target.OwnerUserId = source.OwnerUserId; }
public static DB.SlaveGroup ToEntity(DT.SlaveGroup source) { if (source == null) return null; var entity = new DB.SlaveGroup(); ToEntity(source, entity); return entity; }
public static DA.SlaveGroup ToEntity(this DT.SlaveGroup source) { if (source == null) return null; var result = new DA.SlaveGroup(); source.CopyToEntity(result); return result; }
public static void ToEntity(DT.SlaveGroup source, SlaveGroup target) { if ((source != null) && (target != null)) { target.ResourceId = source.Id; target.Name = source.Name; target.ParentResourceId = source.ParentResourceId; } }
public static DT.SlaveGroup ToDto(SlaveGroup source) { if (source == null) return null; return new DT.SlaveGroup { Id = source.ResourceId, Name = source.Name, ParentResourceId = source.ParentResourceId }; }