mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 13:33:34 -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.ToObject(map.FieldType, (int)dbValue);
|
||||
return Enum.ToObject(map.FieldType, (int)dbValue);
|
||||
}
|
||||
|
||||
public object ToDB(object clrValue)
|
||||
{
|
||||
if (clrValue == null)
|
||||
return DBNull.Value;
|
||||
else
|
||||
return (int)clrValue;
|
||||
return (int)clrValue;
|
||||
}
|
||||
|
||||
public Type DbType
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue