Hello,
I recently did a WCF development using Llblgen as the ORM and using the generated Llblgen entities (adapter) up to the interface layer. Works great!
Thought at giving a shot at SilverLight and porting the work I did with WCF to SilverLight.
And hit a wall when I realized that all assemblies referenced by a SilverLight project must be SilverLight class libraries, that is : using the light .NET framework that SilverLight uses. Makes sense after all, but I did not forsee the problem...
So if I want to use Llblgen generated entities layer in a SilverLight App I would require to have the ORM Support libraries compiling against the light weigth .NET framework. And for what I have read from previous posts, it does not at the moment...
Solution would be to use DTOs. However: I quite like the idea of using Llblgen entities up to the UI Layer, even in an SOA architecture, with the limitation of reducing interoperability or having a higher coupling. Reason is that I can make advantage of a lot of stuff already implemented in the entities layer, naming a few : field versionning, support for IDataErrorInfo, support for complex hierarchies of objects... If I use DTOs and want the same kind of features, I would need to re-implement what already exists... And golden rule in software: don't develop what already exists!! reuse... The less code you write, the fewest bug you have...
It is a shame: my understanding (dreams) about SilverLight was to be able to do Web Development the same way and with same power than desktop development... I understand after reading previous posts about the subject that it is quite a challenge to make the Llblgen runtime libraries compile for SilverLight and especially knowing that the light weight framework still evolves quite a lot and MS are far from unifying classical .NET development and SilverLight development.
However I would just like to know if there is any news about it before I invest more time on the subject and on DTOs: can we now (or in near future) build the ORM Support libraries against the SilverLight .NET Framework? If not: any better option that the DTOs or suggestion ? It would just be such a great power to be able to fully use Llblgen in SilverLight projects! I still believe that SilverLight has a great future and will keep evolving.
Thank you in advance!