I know you want to keep everything as is, but I strongly recommend that you move the ProfilePicture storage to its own "service" instead.
/G Den ons 28 aug. 2019 kl 01:43 skrev Alberto <[email protected] >: > I have a "User" entity that has a "ProfilePicture" byte-array property, > persisted in a Filestream field on SQL Server. > I would like to make this web application work in an Azure AppService, and > It would be great if all binary contents (pictures) are saved inside an > Azure blob storage container. > My application works great On-Premises, and I would like to keep > everything as is, changing only the binary data persistence behavior. > How can achieve this? > > My idea is to create a custom ProxyFactory class that injects Blob storage > persistence logic inside entity binary properties' getters and setters (AOP > style), and invoke that logic using an event listener. Does this make sense? > > Anyway: > 1. How can I create a custom ProxyFactory class, and how can I specify it > in my NH configuration? > 2. Is there a way to create custom proxies using NHibernate, or I have to > rely on external libraries (i.e. Castle)? > > Thanks a lot, > > -- > Alberto > > -- > You received this message because you are subscribed to the Google Groups > "nhusers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/nhusers/655e4ac0-8f07-4134-9322-9566cd04b099%40googlegroups.com > <https://groups.google.com/d/msgid/nhusers/655e4ac0-8f07-4134-9322-9566cd04b099%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "nhusers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nhusers/CAAOnFsNUHtCDvendX8Nq3zXgEJFthYbwUF0msLWyVMdsTNZFVQ%40mail.gmail.com.
