eXpandFramework / eXpand

DevExpress XAF (eXpressApp) extension framework. ๐—น๐—ถ๐—ป๐—ธ๐—ฒ๐—ฑ๐—ถ๐—ป.๐—ฒ๐˜…๐—ฝ๐—ฎ๐—ป๐—ฑ๐—ณ๐—ฟ๐—ฎ๐—บ๐—ฒ๐˜„๐—ผ๐—ฟ๐—ธ.๐—ฐ๐—ผ๐—บ, ๐˜†๐—ผ๐˜‚๐˜๐˜‚๐—ฏ๐—ฒ.๐—ฒ๐˜…๐—ฝ๐—ฎ๐—ป๐—ฑ๐—ณ๐—ฟ๐—ฎ๐—บ๐—ฒ๐˜„๐—ผ๐—ฟ๐—ธ.๐—ฐ๐—ผ๐—บ and ๐˜๐˜„๐—ถ๐˜๐˜๐—ฒ๐—ฟ @๐—ฒ๐˜…๐—ฝ๐—ฎ๐—ป๐—ฑ๐—ณ๐—ฟ๐—ฎ๐—บ๐—ฒ๐˜„๐—ผ๐—ฟ๐—ธ and or simply ๐—ฆ๐˜๐—ฎ๐—ฟ/๐˜„๐—ฎ๐˜๐—ฐ๐—ต this repository and get notified from ๐—š๐—ถ๐˜๐—›๐˜‚๐—ฏ
http://expand.expandframework.com
Microsoft Public License
222 stars 115 forks source link

SequenceStorage canยดt assing any new values since Update 22.2.601 #997

Closed CWolffIF closed 1 year ago

CWolffIF commented 1 year ago

Hi Tolis,

since update 22.2.601 the SequenceStorage didnยดt work.

๐——๐—ฒ๐˜€๐—ฐ๐—ฟ๐—ถ๐—ฏ๐—ฒ ๐˜๐—ต๐—ฒ ๐—ฏ๐˜‚๐—ด: Objects that have a number generated via SequenceStorage donยดt get a new sequence number automaticly when saving. It works just fine for an application without any authentication, but doesnt seem to do anything when we include authentication.

ย ๐—ง๐—ผ ๐—ฅ๐—ฒ๐—ฝ๐—ฟ๐—ผ๐—ฑ๐˜‚๐—ฐ๐—ฒ: Start example project => Username : Adminย  Password => none Assign DummyTicket class propertyย  TicketNumber a sequence and try creating new ones.

Attached is an example project. Thank you for your time and assistance.

SequenceExample.zip

apobekiaris commented 1 year ago

I do not see any reference or usage of SequenceStorage in your sample or am I missing something

TheGermanNiko commented 1 year ago

Sry, it was just added it as an navigational item during runtime, not in code.

image

apobekiaris commented 1 year ago

if u are in a hurry and u want to fix it now by recompiling the source replace ln 164 of SequenceGenerator with

.SelectMany(dataLayer => application.WhenObjectSpaceCreated(true).Where(space => space is not NonPersistentObjectSpace)

I will update u again once I manage to understand why the original call fails

apobekiaris commented 1 year ago

note: this temp fix conflicts with hangfire doc recommendations

apobekiaris commented 1 year ago

latest version should be fine?

CWolffIF commented 1 year ago

I tested it with 22.2.602 but it didnยดt work.

apobekiaris commented 1 year ago

can u provide an update sample to verify it, your sample works on my side

image

CWolffIF commented 1 year ago

We try it in the sample. My main project is .net7. So we test the sample on .net6 and .net7 and give you a feedback.

TheGermanNiko commented 1 year ago

Hi, sofar it seems to be working for net6 again, at least for my project version, gone try a few things and let you know if it works as intended for us.

We also would like to upgrade to net7 and it doesnt seem to work on that version. I attached the initial Projects upgraded to net7. SequenceExample - Net7.zip

apobekiaris commented 1 year ago

.NET7 is not supported yet see #980

CWolffIF commented 1 year ago

Thatยดs bad news. There is a bug in Devexpress .net6 that is fixed in .net7.

https://supportcenter.devexpress.com/ticket/details/t1164201/xtrafolderbrowserdialog-showdialog-returns-immediately-after-invocation

apobekiaris commented 1 year ago

my understanding is that .net7 does not suffer now from this bug? But still u can use .net6 with the hot fix?

apobekiaris commented 1 year ago

also I guess it won't be that long to support it a Proof Read this text:

is pending on Harmony repo

image

https://github.com/pardeike/Harmony/pull/522

CWolffIF commented 1 year ago

OK. We went back to .net6 and it works fine.

expand commented 1 year ago

The pre-release 4.222.11.0 in the Reactive.XAF lab branch includes commits that relate to this task:

To minimize version conflicts we recommend that you use the Xpand.XAF.Core.All, Xpand.XAF.Win.All, Xpand.XAF.Web.All packages. Doing so, all packages will be at your disposal and .NET will add a dependecy only to those packages that you actually use and not to all (see the Modules installation-registrations youtube video).

Released packages: Xpand.Extensions v.4.222.13
Xpand.Extensions.Blazor v.4.222.13
Xpand.Extensions.Mono.Cecil v.4.222.13
Xpand.Extensions.Office.Cloud v.4.222.13
Xpand.Extensions.Office.Cloud.Google.Blazor v.4.222.13
Xpand.Extensions.Reactive v.4.222.13
Xpand.Extensions.XAF v.4.222.13
Xpand.Extensions.XAF.Xpo v.4.222.13
Xpand.TestsLib v.4.222.13
Xpand.TestsLib.Blazor v.4.222.13
Xpand.TestsLib.Common v.4.222.13
Xpand.TestsLib.EasyTest v.4.222.13
Xpand.VersionConverter v.4.222.13
Xpand.XAF.Core.All v.4.222.13
Xpand.XAF.Modules.AutoCommit v.4.222.13
Xpand.XAF.Modules.Blazor v.4.222.13
Xpand.XAF.Modules.BulkObjectUpdate v.4.222.13
Xpand.XAF.Modules.CloneMemberValue v.4.222.13
Xpand.XAF.Modules.CloneModelView v.4.222.13
Xpand.XAF.Modules.Email v.4.222.13
Xpand.XAF.Modules.GridListEditor v.4.222.13
Xpand.XAF.Modules.HideToolBar v.4.222.13
Xpand.XAF.Modules.JobScheduler.Hangfire v.4.222.13
Xpand.XAF.Modules.JobScheduler.Notification v.4.222.13
Xpand.XAF.Modules.MasterDetail v.4.222.13
Xpand.XAF.Modules.ModelMapper v.4.222.13
Xpand.XAF.Modules.ModelViewInheritance v.4.222.13
Xpand.XAF.Modules.Office.Cloud.Google v.4.222.13
Xpand.XAF.Modules.Office.Cloud.Google.Calendar v.4.222.13
Xpand.XAF.Modules.Office.Cloud.Google.Tasks v.4.222.13
Xpand.XAF.Modules.Office.DocumentStyleManager v.4.222.13
Xpand.XAF.Modules.OneView v.4.222.13
Xpand.XAF.Modules.PositionInListView v.4.222.13
Xpand.XAF.Modules.ProgressBarViewItem v.4.222.13
Xpand.XAF.Modules.RazorView v.4.222.13
Xpand.XAF.Modules.Reactive v.4.222.13
Xpand.XAF.Modules.Reactive.Logger v.4.222.13
Xpand.XAF.Modules.Reactive.Logger.Client.Win v.4.222.13
Xpand.XAF.Modules.Reactive.Logger.Hub v.4.222.13
Xpand.XAF.Modules.Reactive.Rest v.4.222.13
Xpand.XAF.Modules.RefreshView v.4.222.13
Xpand.XAF.Modules.SequenceGenerator v.4.222.13
Xpand.XAF.Modules.Speech v.4.222.13
Xpand.XAF.Modules.SpellChecker v.4.222.13
Xpand.XAF.Modules.StoreToDisk v.4.222.13
Xpand.XAF.Modules.SuppressConfirmation v.4.222.13
Xpand.XAF.Modules.TenantManager v.4.222.13
Xpand.XAF.Modules.ViewEditMode v.4.222.13
Xpand.XAF.Modules.ViewItemValue v.4.222.13
Xpand.XAF.Modules.ViewWizard v.4.222.13
Xpand.XAF.Modules.Windows v.4.222.13
Xpand.XAF.Web.All v.4.222.13
Xpand.XAF.Win.All v.4.222.13

Please update the related Nuget packages and test if issues is addressed. These are nightly nuget packages available only from our NugetServer.

If you do not use these packages directly but through a module of the main eXpandFramework project, please wait for the bot to notify you again when integration is finished or update the related packages manually.

Thanks a lot for your contribution.