mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
removed code redundancies.
This commit is contained in:
parent
6d3a604677
commit
9a24268ee7
24 changed files with 104 additions and 185 deletions
|
@ -24,16 +24,14 @@ namespace Marr.Data.Converters
|
|||
{
|
||||
if (dbValue == null || dbValue == DBNull.Value)
|
||||
return null;
|
||||
else
|
||||
return Enum.Parse(map.FieldType, (string)dbValue);
|
||||
return Enum.Parse(map.FieldType, (string)dbValue);
|
||||
}
|
||||
|
||||
public object ToDB(object clrValue)
|
||||
{
|
||||
if (clrValue == null)
|
||||
return DBNull.Value;
|
||||
else
|
||||
return clrValue.ToString();
|
||||
return clrValue.ToString();
|
||||
}
|
||||
|
||||
public Type DbType
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue