public static void ToEntity(DT.Plugin source, DB.Plugin target) { if ((source != null) && (target != null)) { target.PluginId = source.Id; target.Name = source.Name; target.Version = source.Version.ToString(); target.UserId = source.UserId; target.DateCreated = source.DateCreated; target.Hash = source.Hash; } }
public static DT.Plugin ToDto(DB.Plugin source) { if (source == null) { return(null); } return(new DT.Plugin { Id = source.PluginId, Name = source.Name, Version = new Version(source.Version), UserId = source.UserId, DateCreated = source.DateCreated, Hash = source.Hash }); }
public static DB.Plugin ToEntity(DT.Plugin source) { if (source == null) { return(null); } var entity = new DB.Plugin(); ToEntity(source, entity); return(entity); }
public static DA.Plugin ToEntity(this DT.Plugin source) { if (source == null) { return(null); } var result = new DA.Plugin(); source.CopyToEntity(result); return(result); }
public static void CopyToEntity(this DT.Plugin source, DA.Plugin target) { if ((source == null) || (target == null)) { return; } target.PluginId = source.Id; target.Name = source.Name; target.Version = source.Version.ToString(); target.UserId = source.UserId; target.DateCreated = source.DateCreated; target.Hash = source.Hash; }
public static DB.Plugin ToEntity(DT.Plugin source) { if (source == null) return null; var entity = new DB.Plugin(); ToEntity(source, entity); return entity; }
public static DA.Plugin ToEntity(this DT.Plugin source) { if (source == null) return null; var result = new DA.Plugin(); source.CopyToEntity(result); return result; }
partial void DeletePlugin(Plugin instance);
partial void UpdatePlugin(Plugin instance);
partial void InsertPlugin(Plugin instance);
public static void ToEntity(DT.Plugin source, Plugin target) { if ((source != null) && (target != null)) { target.PluginId = source.Id; target.Name = source.Name; target.Version = source.Version.ToString(); target.UserId = source.UserId; target.DateCreated = source.DateCreated; target.Hash = source.Hash; } }
public static DT.Plugin ToDto(Plugin source) { if (source == null) return null; return new DT.Plugin { Id = source.PluginId, Name = source.Name, Version = new Version(source.Version), UserId = source.UserId, DateCreated = source.DateCreated, Hash = source.Hash }; }