/// <summary> /// Assignes HiLo key generation strategy. /// </summary> /// <typeparam name="TEntity">The type of the entity.</typeparam> /// <param name="generatedBy">The generated by.</param> /// <returns></returns> public static IdentityPart HiLo <TEntity>(this IdentityGenerationStrategyBuilder <IdentityPart> generatedBy) where TEntity : class { return(generatedBy.HiLo("HiLo", "NextHi", "100", $"Entity = '{typeof(TEntity).FullName}'")); }
public static IdentityPart HiLo(this IdentityGenerationStrategyBuilder <IdentityPart> generatedBy, string entityName) { return(generatedBy.HiLo("HiLo", "NextHi", "100", $"Entity = '{entityName}'")); }