I'm using Rocky Lhotka's CSLA for a project, and one of the issues that I've
encountered with using it in conjunction with Resharper is that Resharper
indicates that the overriden and private DataPortal_XYZ methods are unused.
They are in fact used by the framework, but not in an obvious way. The way
that CSLA works is as follows:
Let's say that I want to fetch an instance of a business object that's
already been persisted. I'd call a method like this:
public class Order : BusinessBase
public static Order FetchOrder( Guid orderId )
return DataPortal.Fetch]]>( new OrderCriteria( orderId ) );
Then, I create a method on Order as follows:
private void DataPortal_Fetch( OrderCriteria criteria )
AssignOrderValues( FetchOrderFromPersistence( criteria.OrderId ) );
// Or however I fetch my BO
Now I don't actually call DataPortal_Fetch. Instead, the CSLA framework
knows to call that method. In fact, if I specify a remote server, CSLA knows
to execute the method on the remote server. However, because my code doesn't
actually reference DataPortal_Fetch, it shows up with a nice orange (yellow?
what is that color anyway?) warning.
Is there any way to tell Resharper to simply ignore the DataPortal_XYZ