You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Connected.Framework/Connected.Data/Schema/Sql/SynchronizationQuery.cs

22 lines
416 B

namespace Connected.Data.Schema.Sql
{
internal abstract class SynchronizationQuery<T> : SynchronizationCommand
{
protected SchemaExecutionContext Context { get; private set; }
public async Task<T> Execute(SchemaExecutionContext context)
{
Context = context;
return await OnExecute();
}
protected virtual async Task<T> OnExecute()
{
await Task.CompletedTask;
return default;
}
}
}