mirror of
https://github.com/bitwarden/server
synced 2026-01-07 19:13:50 +00:00
added share data model
This commit is contained in:
9
src/Core/Repositories/IShareRepository.cs
Normal file
9
src/Core/Repositories/IShareRepository.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using System;
|
||||
using Bit.Core.Domains;
|
||||
|
||||
namespace Bit.Core.Repositories
|
||||
{
|
||||
public interface IShareRepository : IRepository<Share, Guid>
|
||||
{
|
||||
}
|
||||
}
|
||||
16
src/Core/Repositories/SqlServer/ShareRepository.cs
Normal file
16
src/Core/Repositories/SqlServer/ShareRepository.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using Bit.Core.Domains;
|
||||
|
||||
namespace Bit.Core.Repositories.SqlServer
|
||||
{
|
||||
public class ShareRepository : Repository<Share, Guid>, IShareRepository
|
||||
{
|
||||
public ShareRepository(GlobalSettings globalSettings)
|
||||
: this(globalSettings.SqlServer.ConnectionString)
|
||||
{ }
|
||||
|
||||
public ShareRepository(string connectionString)
|
||||
: base(connectionString)
|
||||
{ }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user