16 lines
507 B
C#
16 lines
507 B
C#
namespace Finch.Raven;
|
|
|
|
public partial class RavenOperations : IRavenOperations
|
|
{
|
|
/// <inheritdoc />
|
|
public virtual Task<T> Empty<T>(string flavorAlias = null) where T : FinchIdEntity, ISupportsFlavors, new() => Empty<T, T>(flavorAlias);
|
|
|
|
|
|
/// <inheritdoc />
|
|
public virtual Task<TFlavor> Empty<T, TFlavor>(string flavorAlias = null)
|
|
where T : FinchIdEntity, ISupportsFlavors, new()
|
|
where TFlavor : T, new()
|
|
{
|
|
return Task.FromResult(Flavors.Construct<T, TFlavor>(flavorAlias));
|
|
}
|
|
} |