mirror of
https://github.com/bitwarden/server
synced 2025-12-15 15:53:59 +00:00
Add queries, rename seed to scene
This commit is contained in:
15
util/Seeder/IQuery.cs
Normal file
15
util/Seeder/IQuery.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
namespace Bit.Seeder;
|
||||
|
||||
public interface IQuery
|
||||
{
|
||||
Type GetRequestType();
|
||||
object Execute(object request);
|
||||
}
|
||||
|
||||
public interface IQuery<TRequest> : IQuery where TRequest : class
|
||||
{
|
||||
object Execute(TRequest request);
|
||||
|
||||
Type IQuery.GetRequestType() => typeof(TRequest);
|
||||
object IQuery.Execute(object request) => Execute((TRequest)request);
|
||||
}
|
||||
Reference in New Issue
Block a user