mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-18 21:34:28 -04:00
removed redundant qualifiers.
This commit is contained in:
@@ -14,10 +14,12 @@ You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
using System;
|
||||
using System.Globalization;
|
||||
using Marr.Data.Mapping;
|
||||
|
||||
namespace Marr.Data.Converters
|
||||
{
|
||||
public class CastConverter<TClr, TDb> : Marr.Data.Converters.IConverter
|
||||
public class CastConverter<TClr, TDb> : IConverter
|
||||
where TClr : IConvertible
|
||||
where TDb : IConvertible
|
||||
{
|
||||
@@ -28,16 +30,16 @@ namespace Marr.Data.Converters
|
||||
get { return typeof(TDb); }
|
||||
}
|
||||
|
||||
public object FromDB(Marr.Data.Mapping.ColumnMap map, object dbValue)
|
||||
public object FromDB(ColumnMap map, object dbValue)
|
||||
{
|
||||
TDb val = (TDb)dbValue;
|
||||
return val.ToType(typeof(TClr), System.Globalization.CultureInfo.InvariantCulture);
|
||||
return val.ToType(typeof(TClr), CultureInfo.InvariantCulture);
|
||||
}
|
||||
|
||||
public object ToDB(object clrValue)
|
||||
{
|
||||
TClr val = (TClr)clrValue;
|
||||
return val.ToType(typeof(TDb), System.Globalization.CultureInfo.InvariantCulture);
|
||||
return val.ToType(typeof(TDb), CultureInfo.InvariantCulture);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user