mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-25 22:36:59 -04:00
removed code redundancies.
This commit is contained in:
@@ -26,38 +26,37 @@ namespace Marr.Data.Parameters
|
||||
if (type == typeof(String))
|
||||
return OleDbType.VarChar;
|
||||
|
||||
else if (type == typeof(Int32))
|
||||
if (type == typeof(Int32))
|
||||
return OleDbType.Integer;
|
||||
|
||||
else if (type == typeof(Decimal))
|
||||
if (type == typeof(Decimal))
|
||||
return OleDbType.Decimal;
|
||||
|
||||
else if (type == typeof(DateTime))
|
||||
if (type == typeof(DateTime))
|
||||
return OleDbType.DBTimeStamp;
|
||||
|
||||
else if (type == typeof(Boolean))
|
||||
if (type == typeof(Boolean))
|
||||
return OleDbType.Boolean;
|
||||
|
||||
else if (type == typeof(Int16))
|
||||
if (type == typeof(Int16))
|
||||
return OleDbType.SmallInt;
|
||||
|
||||
else if (type == typeof(Int64))
|
||||
if (type == typeof(Int64))
|
||||
return OleDbType.BigInt;
|
||||
|
||||
else if (type == typeof(Double))
|
||||
if (type == typeof(Double))
|
||||
return OleDbType.Double;
|
||||
|
||||
else if (type == typeof(Byte))
|
||||
if (type == typeof(Byte))
|
||||
return OleDbType.Binary;
|
||||
|
||||
else if (type == typeof(Byte[]))
|
||||
if (type == typeof(Byte[]))
|
||||
return OleDbType.VarBinary;
|
||||
|
||||
else if (type == typeof(Guid))
|
||||
if (type == typeof(Guid))
|
||||
return OleDbType.Guid;
|
||||
|
||||
else
|
||||
return OleDbType.Variant;
|
||||
return OleDbType.Variant;
|
||||
}
|
||||
|
||||
public void SetDbType(IDbDataParameter param, Enum dbType)
|
||||
|
||||
Reference in New Issue
Block a user