eXpand icon indicating copy to clipboard operation
eXpand copied to clipboard

Replacement for ISupportSequenceObject.Prefix in agnostic SequenceGenerator

Open krombipils opened this issue 3 years ago • 2 comments

Hi,

I'm currently trying to migrate from the old eXpand SequenceGenerator to the 'new' Reactive.XAF SequenceGenerator module. I am using the ISupportSequenceObject.Prefix property to generate unique sequences based on a property of the target entities. I wonder how to archive the same with the new SequenceGenerator implementation. There is a new SequenceStorageKeyName attribute, but it's lacking documentation and I don't know if this is what I should use.

Any help is appreciated!

krombipils avatar Mar 28 '22 12:03 krombipils

I am not sure either cause I presonally do not use the package and for creating a sample it requires research time,

I see a related test that might be of help https://github.com/eXpandFramework/Reactive.XAF/blob/16fda8ed431d6a11b5e119f03def866fe2a761d1/src/Tests/SequenceGenerator/SequenceGeneratorTests.cs#L200

maybe @CWolffIF or @isatahiri can help on this one?

apobekiaris avatar Mar 29 '22 06:03 apobekiaris

Thank you, I also found this test, but either I don't understand the impl or it is is not sufficient for my requirement:

In the test SequenceStorageKeyName is used to change the 'Name' field of the SequenceStorage object from CustomSquenceNameTestObject to CustomSequenceTypeName at compile time. I don't know how to create multiple SequenceStorage objects for CustomSquenceNameTestObject based on a property.

Any help of @CWolffIF or @isatahiri is very appreciated

krombipils avatar Mar 29 '22 08:03 krombipils

Closing issue for age. Feel free to reopen it at any time.

.Thank you for your contribution.

expand avatar Mar 04 '24 21:03 expand