1. Home
  2. Docs
  3. Llamachant Framework Modules
  4. Extended Functionality
  5. IObjectSpace Extensions

IObjectSpace Extensions

There are a few extension methods added to IObjectSpace to help when working with multiple IObjectSpaceProviders. You typically only need this in advanced scenarios involving non-persistent objects.

				
					IObjectSpace space = Application.CreateObjectSpace(typeof(MyNonPersistentObject));
if (space.IsNonPersistent())
{
    IObjectSpace persistentspace = space.ForType<MyPersistentObject>();
    //Work with the correct IObjectSpace now
}
				
			
Was this article helpful to you? Yes 1 No

How can we help?