/// <summary> /// Spicifies the setup for a hook, that should be called while loading entity of specified type. /// </summary> /// <typeparam name="T">Type of the entity.</typeparam> /// <param name="objectContext">The object context.</param> /// <returns> /// The setup for a hook. /// </returns> public static ILoadSetup <T> OnLoad <T>(this ObjectContext objectContext) where T : class { return(objectContext.CreateHook().OnLoad <T>()); }