eXpandFramework / eXpand

DevExpress XAF (eXpressApp) extension framework. 𝗹𝗶𝗻𝗸𝗲𝗱𝗶𝗻.𝗲𝘅𝗽𝗮𝗻𝗱𝗳𝗿𝗮𝗺𝗲𝘄𝗼𝗿𝗸.𝗰𝗼𝗺, 𝘆𝗼𝘂𝘁𝘂𝗯𝗲.𝗲𝘅𝗽𝗮𝗻𝗱𝗳𝗿𝗮𝗺𝗲𝘄𝗼𝗿𝗸.𝗰𝗼𝗺 and 𝘁𝘄𝗶𝘁𝘁𝗲𝗿 @𝗲𝘅𝗽𝗮𝗻𝗱𝗳𝗿𝗮𝗺𝗲𝘄𝗼𝗿𝗸 and or simply 𝗦𝘁𝗮𝗿/𝘄𝗮𝘁𝗰𝗵 this repository and get notified from 𝗚𝗶𝘁𝗛𝘂𝗯
http://expand.expandframework.com
Microsoft Public License
220 stars 114 forks source link

Replacement for ISupportSequenceObject.Prefix in agnostic SequenceGenerator #921

Closed krombipils closed 6 months ago

krombipils commented 2 years ago

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!

apobekiaris commented 2 years ago

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?

krombipils commented 2 years ago

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

expand commented 6 months ago

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

.Thank you for your contribution.