Reflection from BusinessBase #2555
Unanswered
kcabral817
asked this question in
Questions
Replies: 1 comment
-
These are not related issues. Assuming you are using a remote data portal, you only need to deploy the DAL assemblies to the server. Just because the business assembly references a DLL doesn't mean you need to deploy it. If that DLL is never invoked by the client-side code (and it sure shouldn't be!!), then .NET will never try to load that DLL and so it doesn't matter that it wasn't deployed. So I'd recommend actually referencing the DAL assembly, injecting it into the data portal operation methods via DI, and just not deploying it to the client. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Rocky,
I am wondering if it's a good idea to call the factory class via reflection from the businesBase Class? Right now I use an ObjectFactory with the [Csla.Server.ObjectFactory(typeof(CompanyParameterFactory), "Create", "GetAsync", "UpdateAsync", "DeleteAsync")].
Could I do something like:
``
``
This would allow me to reduce the number and size of the dlls distributed to the wpf front end.
What do you think?
Beta Was this translation helpful? Give feedback.
All reactions