qol: remove this

This commit is contained in:
Gary Sharp
2025-07-20 11:39:42 +10:00
parent b4e54c9edf
commit 4e518d6684
56 changed files with 282 additions and 282 deletions
+2 -2
View File
@@ -73,9 +73,9 @@ namespace Disco.Models.Repository
public override string ToString()
{
if (DeviceModel != null)
return string.Format("{0} - {1}", this.DeviceModel, this.SerialNumber);
return string.Format("{0} - {1}", DeviceModel, SerialNumber);
else
return this.SerialNumber;
return SerialNumber;
}
[NotMapped]
@@ -53,11 +53,11 @@ namespace Disco.Models.Repository
public override string ToString()
{
if (string.IsNullOrWhiteSpace(this.Name))
if (string.IsNullOrWhiteSpace(Name))
{
return string.Format("{0}: {1}", this.Id, this.PurchaseDate.ToLongDateString());
return string.Format("{0}: {1}", Id, PurchaseDate.ToLongDateString());
}
return this.Name;
return Name;
}
}
}
@@ -48,11 +48,11 @@ namespace Disco.Models.Repository
public override string ToString()
{
if (string.IsNullOrEmpty(this.ShortName))
if (string.IsNullOrEmpty(ShortName))
{
return this.Name;
return Name;
}
return string.Format("{0} ({1})", this.Name, this.ShortName);
return string.Format("{0} ({1})", Name, ShortName);
}
[StringLength(200)]