Swap to dapper Mk. 2

This commit is contained in:
ta264
2019-12-18 21:56:41 +00:00
committed by Qstick
parent 47f45a6275
commit f83ccb6ca4
146 changed files with 2460 additions and 2190 deletions

View File

@@ -7,6 +7,10 @@ namespace NzbDrone.Core.CustomFormats
{
public class CustomFormat : ModelBase, IEquatable<CustomFormat>
{
public string Name { get; set; }
public List<FormatTag> FormatTags { get; set; }
public CustomFormat()
{
}
@@ -17,9 +21,7 @@ namespace NzbDrone.Core.CustomFormats
FormatTags = tags.Select(t => new FormatTag(t)).ToList();
}
public string Name { get; set; }
public List<FormatTag> FormatTags { get; set; }
public static implicit operator CustomFormatDefinition(CustomFormat format) => new CustomFormatDefinition { Id = format.Id, Name = format.Name, FormatTags = format.FormatTags };
public override string ToString()
{