Small CSLA tweak...

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);
}

RockfordLhotka replied on Friday, January 30, 2009

Recorded, thanks!

http://www.lhotka.net/cslabugs/edit_bug.aspx?id=323

Copyright (c) Marimer LLC