Reporter | Peter Lehmann (plehmann) |
---|---|
Created | Feb 23, 2011 3:15:08 PM |
Updated | Jan 20, 2012 9:29:57 PM |
Resolved | Jan 19, 2012 2:41:21 PM |
Priority | Normal |
Type | Bug |
Fix versions | No Fix versions |
State | Can't Reproduce |
Assignee | Evgeny Pasynkov (pasynkov) |
Subsystem | No subsystem |
Affected versions | No Affected versions |
Fixed in build | No Fixed in build |
I get "method, delegate or event is exected" error on some lines where there is no error
Code for this problem
public class SupplierProductDao : BaseDao, ISupplierProductDao
{
...
public void Evict(SupplierProduct supplierProduct)
{
GetSession().Evict(supplierProduct);
}
...
}
/// this class is in another assembly
public abstract class BaseDao
{
...
protected ISession GetSession()
{
return GetSessionWithTransaction(this._key);
}
...
}
Code for this problem
public class SupplierProductDao : BaseDao, ISupplierProductDao
{
...
public void Evict(SupplierProduct supplierProduct)
{
GetSession().Evict(supplierProduct);
}
...
}
/// this class is in another assembly
public abstract class BaseDao
{
...
protected ISession GetSession()
{
return GetSessionWithTransaction(this._key);
}
...
}