API Questions on Kentico API.
Version 6.x > API > DataClassInfoProvider.GetDataClass("ecommerce.order"); return null View modes: 
User avatar
Member
Member
prog.peter.habib-gmail - 2/7/2012 4:16:34 AM
   
DataClassInfoProvider.GetDataClass("ecommerce.order"); return null
i'm using this code DataClassInfoProvider.GetDataClass("ecommerce.order"); but sometimes return null and sometimes return dataset of order table.

so what is the problem?

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 2/7/2012 5:17:58 AM
   
RE:DataClassInfoProvider.GetDataClass("ecommerce.order"); return null
Hello,


it is strange. Can you try to use:

DataClassInfoProvider.GetDataClassFromDB("ecommerce.order");

Does it help?

Where do you use the method? (Ouside the Kentico project, a custom provider, a custom scheduled task, ...)


Best regards,
Helena Grulichova