For v2.5, there is a overloaded method for DeleteEntitesDirectly, which takes typeOfEntity as the first argument.
But when I run the following function:
adapter.DeleteEntitiesDirectly(EntityType.PrecheckEntity, Nothing)
it gives exception as following:
{System.ArgumentException}
System.ArgumentException: {"The element name '16' isn't known in this provider
Parameter name: elementName"}
Data: {System.Collections.ListDictionaryInternal}
HelpLink: Nothing
InnerException: Nothing
Message: "The element name '16' isn't known in this provider
Parameter name: elementName"
Source: "SD.LLBLGen.Pro.ORMSupportClasses.NET20"
StackTrace: " at SD.LLBLGen.Pro.ORMSupportClasses.PersistenceInfoProviderBase.GetElementMappingInfo(String elementName)
at SD.LLBLGen.Pro.ORMSupportClasses.PersistenceInfoProviderBase.GetAllFieldPersistenceInfos(String elementName)
at SD.LLBLGen.Pro.ORMSupportClasses.DataAccessAdapterBase.GetFieldPersistenceInfos(String entityName)
at SD.LLBLGen.Pro.ORMSupportClasses.DataAccessAdapterBase.DeleteEntitiesDirectly(String entityName, IRelationPredicateBucket filterBucket)
at RequstManagement.CheckFile(String strName) in C:\Projects\EG\Agco.Shs\Agco.Shs.BusinessLogic\RequstManagement.vb:line 74"
TargetSite: {System.Reflection.RuntimeMethodInfo}
Apparently, it does not like the type I passed in.
But if I use the original method:
adapter.DeleteEntitiesDirectly("PrecheckEntity", Nothing)
it works fine.
What typeOfEntity should I pass in?
Thanks
Derek