I get an Error on the DAL 2 PetaPoco trying to get a time field from the SQL Server. Is there a work around? What is the PetaPoco Type of Variable that I got to put on the C# Class?
I get this error:
Error: Administrativo is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException:
Object must implement IConvertible. --->
System.InvalidCastException: Object must implement IConvertible.
at System.Convert.ChangeType(Object value, Type conversionType,
IFormatProvider provider)
at
PetaPoco.Internal.PocoData.<>c__DisplayClass16.<GetConverter>b__11(Object
src)
at petapoco_factory_0(IDataReader )
at PetaPoco.Database.<Query>d__2`1.MoveNext()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at PetaPoco.Database.Fetch[T](String sql, Object[] args)
at
DotNetNuke.Data.PetaPoco.PetaPocoDataContext.ExecuteQuery[T](CommandType
type, String sql, Object[] args)
at
Par.Modules.Administrativo.Components.ProgramaRadioController.SelectWhereCommand(Int32
moduleId) in
c:\Websites\dnndev.me\DesktopModules\Administrativo\Components\ProgramaRadioController.cs:line
23
at
Par.Modules.Administrativo.RadioProgramView.DisplayProgramasDeRadio() in
c:\Websites\dnndev.me\DesktopModules\Administrativo\RadioProgramView.ascx.cs