/// Set true to automatically save entity to database.
/// This is useful for ORMs / database APIs those only save changes with an explicit method call, but you need to immediately save changes to the database.
/// Set true to automatically save changes to database.
/// This is useful for ORMs / database APIs those only save changes with an explicit method call, but you need to immediately save changes to the database.
/// <param name="entity">Entity to be deleted</param>
/// <param name="autoSave">
/// Set true to automatically save changes to database.
/// This is useful for ORMs / database APIs those only save changes with an explicit method call, but you need to immediately save changes to the database.
/// <param name="id">Primary key of the entity</param>
/// <param name="autoSave">
/// Set true to automatically save changes to database.
/// This is useful for ORMs / database APIs those only save changes with an explicit method call, but you need to immediately save changes to the database.
/// </param>
voidDelete(TKeyid,boolautoSave=false);//TODO: Return true if deleted
/// Notice that: All entities fits to given predicate are retrieved and deleted.
/// This may cause major performance problems if there are too many entities with
/// given predicate.
/// </summary>
/// <param name="predicate">A condition to filter entities</param>
/// <param name="autoSave">
/// Set true to automatically save changes to database.
/// This is useful for ORMs / database APIs those only save changes with an explicit method call, but you need to immediately save changes to the database.
Assert.Throws<AbpValidationException>(()=>_myAppService.MyMethod(newMyMethodInput()));//MyStringValue is not supplied!
Assert.Throws<AbpValidationException>(()=>_myAppService.MyMethod(newMyMethodInput{MyStringValue="a"}));//MyStringValue's min length should be 3!
awaitAssert.ThrowsAsync<AbpValidationException>(async()=>await_myAppService.MyMethod(newMyMethodInput()));//MyStringValue is not supplied!
awaitAssert.ThrowsAsync<AbpValidationException>(async()=>await_myAppService.MyMethod(newMyMethodInput{MyStringValue="a"}));//MyStringValue's min length should be 3!