/// <summary> /// Asserts that there's no ObjectStateEntry for the given entity in the given DbContext. /// </summary> /// <param name="dbContext"> A DbContext instance. </param> /// <param name="entity"> The entity to lookup. </param> public static void AssertNoStateEntry(DbContext dbContext, object entity) { ModelHelpers.AssertNoStateEntry(dbContext, entity); }