This question is locked. New answers and comments are not allowed.
Hi,
I have a class 'Equipment' with nullable datetime field 'PurchaseDate'. When execute sql query and materialize to non-persistent type, datetime field is always null. When I change data type to DateTime it works, but null values in database are mapped to DateTime.MinValue in object. Which causes problems when showing in RadGridView and GridViewDateTimeColumn.
DataAccess Version: 2016.2.822.1
string
sqlSelect =
"SELECT Name, Description, PurchaseDate FROM Equipment"
;
using
(Telerik.OpenAccess.OpenAccessContext ctx = DbContext.DbContextFactory.Instance.GetNew())
{
IList<ListModel.Equipment> list = ctx.ExecuteQuery<ListModel.Equipment>(sqlSelect);
return
list;
}