/// <summary> /// Delete the specified id. /// </summary> /// <returns><c>true</c> if document has been deleted; otherwise, <c>false</c>.</returns> /// <param name="entity">Entity.</param> public bool Delete(dynamic entity) { var response = AsyncTools.RunSync<bool>(() => DeleteAsync(BaseRepository<dynamic>.GetId(entity))); return response; }
/// <summary> /// Initializes a new instance of the <see cref="T:Oogi2.Repository`1"/> class. /// </summary> /// <param name="connection">Connection.</param> public Repository(IConnection connection) { _repository = new BaseRepository<dynamic>(connection); }