I'm creating, or trying to create a DTO for a Person class
******
namespace KurtStack.Data.Repositories
{
public static class PersonDTO
{
public static object GetPersonDTO()
{
var session =
IoC.Container.Resolve<INHibernateSessionProvider>() as ISession;
var obj = session.CreateCriteria(typeof(Person))
.CreateAlias("FirstName", "fn")
.CreateAlias("LastName", "ln");
return obj;
}
}
}
***
my problem is getting this to return to my UI via a Command object
with out directly referencing INHibernateSessionProvider. Any ideas on
how to do this?
my command object does not directly reference KurtStack.Data.
so to get it to the UI i'd like to do something like this:
GetPersonDTO. ... hrlp
public class NewPersonCommand : ICommand
{
private readonly Person person;
public static object GetPersonDTO()
{
object obj = GetpersonDTO();
return obj;
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---