This question is locked. New answers and comments are not allowed.
I created my model from the existing database. And then i modified Identity Mechanism to HighLow for a single domain class OMS_COUNTRY. I used that class here as:
public ActionResult _Read([DataSourceRequest]DataSourceRequest request)
{
IQueryable<OMS_COUNTRY> CustomerList = this.dbContext.OMS_COUNTRies;
DataSourceResult result = CustomerList.ToDataSourceResult(request
, ModelState
, c => new OMS_COUNTRYViewModel
{
OMS_COUNTRY_ID = c.OMS_COUNTRY_ID,
COUNTRYNAME = c.COUNTRYNAME,
ABBREVIATION = c.ABBREVIATION
});
return Json(result);
}
This code was working till I modify Identity Mechanism to HighLow for all the rest of the classes. After changing the Identity Mechanism for every domain class to HighLow the existing code above throw this exception.
Unable to cast object of type 'Telerik.OpenAccess.Runtime.Logging.LoggingDbDataReader' to type 'System.Data.SqlClient.SqlDataReader'.
public ActionResult _Read([DataSourceRequest]DataSourceRequest request)
{
IQueryable<OMS_COUNTRY> CustomerList = this.dbContext.OMS_COUNTRies;
DataSourceResult result = CustomerList.ToDataSourceResult(request
, ModelState
, c => new OMS_COUNTRYViewModel
{
OMS_COUNTRY_ID = c.OMS_COUNTRY_ID,
COUNTRYNAME = c.COUNTRYNAME,
ABBREVIATION = c.ABBREVIATION
});
return Json(result);
}
This code was working till I modify Identity Mechanism to HighLow for all the rest of the classes. After changing the Identity Mechanism for every domain class to HighLow the existing code above throw this exception.
Unable to cast object of type 'Telerik.OpenAccess.Runtime.Logging.LoggingDbDataReader' to type 'System.Data.SqlClient.SqlDataReader'.