Small CSLA tweak...
Old forum URL: forums.lhotka.net/forums/t/6299.aspx
rfcdejong posted on Friday, January 30, 2009
In the DataPortalMethodCache.cs class there is a static method being called twice.
This can be tweaked :)
FactoryDataPortal.FactoryLoader.GetFactoryType(factoryInfo.FactoryTypeName) is the one being called twice.
var factoryType = FactoryDataPortal.FactoryLoader.GetFactoryType(factoryInfo.FactoryTypeName);
if (factoryType != null)
{
if (criteria is int)
method = GetMethodInfo(
factoryType,
factoryInfo.FetchMethodName);
else
method = GetMethodInfo(
FactoryDataPortal.FactoryLoader.GetFactoryType(factoryInfo.FactoryTypeName),
factoryInfo.FetchMethodName,
criteria);
}
Copyright (c) Marimer LLC