Skip to content

Instantly share code, notes, and snippets.

@jfromaniello
Created November 26, 2009 14:26
Show Gist options
  • Save jfromaniello/243483 to your computer and use it in GitHub Desktop.
Save jfromaniello/243483 to your computer and use it in GitHub Desktop.
public class MiQueryManager<T, TQueryT> : QueryManager<T, TQueryT> where TQueryT : IQuery
{
private readonly IPersistenceConversation _conversation;
public MiQueryManager(IPersistenceConversation conversation, IQueryDAO pQueryDAO, Sort pDefaultSort)
: base(pQueryDAO, pDefaultSort)
{
_conversation = conversation;
}
public MiQueryManager(IPersistenceConversation conversation, IQueryDAO pQueryDAO, Sort pDefaultSort, int pPageSize)
: base(pQueryDAO, pDefaultSort, pPageSize)
{
_conversation = conversation;
}
protected override void InternalLoadData()
{
_conversation.InConversation(base.InternalLoadData, ConversationEndMode.Continue);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment