Ejemplo n.º 1
0
 private void ThrowIfUnmanaged(object model)
 {
     if (ModelRegistry.IsUnmanagedModel(model) || !ModelRegistry.IsManagedBy(this, model))
     {
         throw new UnmanagedModelException(model.GetType(), ModelRegistry.GetId(model));
     }
 }