hi, given an entity istance i need a way to know if it's a proxy made
by nhibernate or a real object.
i need it to testing purpose and i prefer to don't check directly the
type with GetType() becouse i have some istance on wich i works throw
abstract classes or interface.
if that is possible, when it's a proxy, i want also know if a
particular property is already loaded


this is what i need:

interface IAnEntityType
{
  int ID {get;set;}

   AnotherEntity Other  {get;set;}
}

class AnotherEntity
{
    int ID {get;set;}
}

classToTest
{
    IAnEntityType GetObj()
}


[Test]
public void GetObjWillReturnAProxyWithOtherUnitialized()
{
   IAnEntityType target = new classToTest().GetObj();

  //check that target is a proxy with Other unitialized
}


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to