public TableSequenceIdentityPersister(Net.Vpc.Upa.Field field, Net.Vpc.Upa.Sequence sequence) { this.initialValue = sequence == null ? 1 : sequence.GetInitialValue(); this.allocationSize = (sequence == null) ? 50 : sequence.GetAllocationSize(); this.name = (sequence == null) ? null : sequence.GetName(); this.group = (sequence == null) ? null : sequence.GetGroup(); this.format = (sequence == null) ? null : sequence.GetFormat(); this.field = field; if (this.format == null) { this.format = "{#}"; } if (this.group == null) { this.group = format; } if (this.name == null) { this.name = field.GetEntity().GetName() + "." + field.GetName(); } }
public TableSequenceIdentityPersisterString(Net.Vpc.Upa.Field field, Net.Vpc.Upa.Sequence generatedId) : base(field, generatedId) { }