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

JobScheduler.Hangfire and EF Core 7 #1012

Closed vassiliospallis closed 1 year ago

vassiliospallis commented 1 year ago

Hello, Is JobScheduler.Hangfire module supports EF Core 7.0? Because I tried to install it and when started solution it seeks for the XPO libraries and gives an exception. Thanks a lot!

apobekiaris commented 1 year ago

Xaf supports multiple ORM, so u can install modules on EF on XPO etc

vassiliospallis commented 1 year ago

Thanks a lot for your rapid answer. My XAF project targets EF Core, I followed the instructions to install JobScheduler.Hangfire and when application started it gives an exception at startup.cs mentioning that it cannot find some XPO assemblies (which is logical because an EF Core ORM based XAF solution doesn't include XPO libraries). Thanks for your answer again.

apobekiaris commented 1 year ago

yo can try something like

XAF_how-to-connect-different-data-models-to-several-databases-within-a-single-application

vassiliospallis commented 1 year ago

Thanks again but I don't have this requirement (to connect to several databases). Anyway I will search a little more to troubleshoot the issue, a big thanks for your rapid answers.

apobekiaris commented 1 year ago

u can use the same database/connectionstring then but two different datastores I posted the link to give the idea

apobekiaris commented 1 year ago

one ObjectSpaceProvider use EF and the other XPO to the same db

vassiliospallis commented 1 year ago

OK now I got you! So XPO is needed indeed for the module to work and to co-exist with EF Core I have to use a workaround (2 ORMs to the same db). A big thanks again for your elaboration. Farewell.

apobekiaris commented 1 year ago

the module comes with its own Bussiness Objects that use XPO. You let it work by connecting an ObjectSpaceProvider for these types, check DX for more samples on this

vassiliospallis commented 1 year ago

OK now is clear. Thanks again!