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 DT.PluginData ToDto(DB.PluginData source) { if (source == null) { return(null); } return(new DT.PluginData { Id = source.PluginDataId, PluginId = source.PluginId, Data = source.Data.ToArray(), 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); }
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 DA.PluginData ToEntity(this DT.PluginData source) { if (source == null) return null; var result = new DA.PluginData(); source.CopyToEntity(result); return result; }
private void attach_PluginData(PluginData entity) { this.SendPropertyChanging(); entity.Plugin = this; }
private void detach_PluginData(PluginData entity) { this.SendPropertyChanging(); entity.Plugin = null; }
partial void DeletePluginData(PluginData instance);
partial void UpdatePluginData(PluginData instance);
partial void InsertPluginData(PluginData instance);
public static void ToEntity(DT.PluginData source, PluginData target) { if ((source != null) && (target != null)) { target.PluginDataId = source.Id; target.PluginId = source.PluginId; target.Data = new Binary(source.Data); target.FileName = source.FileName; } }
public static DT.PluginData ToDto(PluginData source) { if (source == null) return null; return new DT.PluginData { Id = source.PluginDataId, PluginId = source.PluginId, Data = source.Data.ToArray(), FileName = source.FileName }; }