mirror of
https://github.com/bitwarden/server.git
synced 2025-06-16 07:50:49 -05:00

* Enable Nullable In Unowned Repos * Update More Tests * Move to One If * Fix Collections * Format * Add Migrations * Move Pragma Annotation * Add Better Assert Message
14 lines
561 B
C#
14 lines
561 B
C#
using Bit.Core.Entities;
|
|
using Bit.Core.Enums;
|
|
|
|
#nullable enable
|
|
|
|
namespace Bit.Core.Repositories;
|
|
|
|
public interface IOrganizationConnectionRepository : IRepository<OrganizationConnection, Guid>
|
|
{
|
|
Task<OrganizationConnection?> GetByIdOrganizationIdAsync(Guid id, Guid organizationId);
|
|
Task<ICollection<OrganizationConnection>> GetByOrganizationIdTypeAsync(Guid organizationId, OrganizationConnectionType type);
|
|
Task<ICollection<OrganizationConnection>> GetEnabledByOrganizationIdTypeAsync(Guid organizationId, OrganizationConnectionType type);
|
|
}
|