Closed GoogleCodeExporter closed 9 years ago
Done. It's protected now. And it's pretty easy to declare a generator with
non-default increment:
[Service(typeof(KeyGenerator), Name="Author")]
[Service(typeof(KeyGenerator), Name="Book")]
public class CustomInt32KeyGenerator : CachingKeyGenerator<int>
{
[ServiceConstructor]
public CustomInt32KeyGenerator(DomainConfiguration configuration)
: base(configuration)
{
CacheSize = 4; // Non-default increment
}
}
Original comment by alex.yakunin
on 26 Aug 2010 at 9:32
Original comment by alex.yakunin
on 26 Aug 2010 at 9:35
Original issue reported on code.google.com by
alex.yakunin
on 17 Aug 2010 at 5:03