Files
mixtape/zero.Raven/Operations/RavenOperations.Empty.cs
T

16 lines
504 B
C#
Raw Normal View History

2022-12-07 15:20:53 +01:00
namespace zero.Raven;
2022-12-07 14:05:11 +01:00
2022-12-07 14:29:07 +01:00
public partial class RavenOperations : IRavenOperations
2022-12-07 14:05:11 +01:00
{
/// <inheritdoc />
public virtual Task<T> Empty<T>(string flavorAlias = null) where T : ZeroIdEntity, ISupportsFlavors, new() => Empty<T, T>(flavorAlias);
/// <inheritdoc />
public virtual Task<TFlavor> Empty<T, TFlavor>(string flavorAlias = null)
where T : ZeroIdEntity, ISupportsFlavors, new()
where TFlavor : T, new()
{
return Task.FromResult(Flavors.Construct<T, TFlavor>(flavorAlias));
}
}