public static void ToEntity(DT.PluginData source, DB.PluginData target) { if ((source != null) && (target != null)) { target.PluginDataId = source.Id; target.PluginId = source.PluginId; target.Data = source.Data; target.FileName = source.FileName; } }
public static DB.PluginData ToEntity(DT.PluginData source) { if (source == null) { return(null); } var entity = new DB.PluginData(); ToEntity(source, entity); return(entity); }
public static void CopyToEntity(this DT.PluginData source, DA.PluginData target) { if ((source == null) || (target == null)) { return; } target.PluginDataId = source.Id; target.PluginId = source.PluginId; target.Data = source.Data; target.FileName = source.FileName; }
public static DA.PluginData ToEntity(this DT.PluginData source) { if (source == null) { return(null); } var result = new DA.PluginData(); source.CopyToEntity(result); return(result); }