1
0
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:
Hinton
2025-10-18 15:55:48 -04:00
parent fd41332e4c
commit 1daf9ad892
13 changed files with 298 additions and 187 deletions

15
util/Seeder/IQuery.cs Normal file
View 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);
}