mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 10:47:08 -07:00
removed redundant qualifiers.
This commit is contained in:
parent
50f66cbcca
commit
e89a35522e
35 changed files with 128 additions and 106 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue