I am relativly new to umbraco, been developing sites for about a year since 4.7.0.
I am currently working a fairly complicated project and wanted to create classes for different document types (eg LINQ to Umbraco) although I have never used linq to umbraco I see its being deprecated so was not going to start a new project with it.
The reason I want to bring it into code is to add extra functions to the classes to help manage everything, I know I can use extension methods to 'extend' the Node element but this looks like it could get quite messy if adding lots of extra functions.
What are the best practises for bring umbraco document types into code?
I use uSiteBuilder for all my umbraco projects. It gives you the possibility to create your document types code first and afterwards work with them as strongly typed objects in C# and Razor scripts.
I am reluctant to use linqtoumbraco - it was removed for a reason.
I have seen uSiteBuilder before but don't know how much it strays away from tradional umbraco. How hard is it to umbraco a site that uses uSiteBuilder e.g from 4.7.1 to 4.8.0
DocumentType classes in c#
I am relativly new to umbraco, been developing sites for about a year since 4.7.0.
I am currently working a fairly complicated project and wanted to create classes for different document types (eg LINQ to Umbraco) although I have never used linq to umbraco I see its being deprecated so was not going to start a new project with it.
The reason I want to bring it into code is to add extra functions to the classes to help manage everything, I know I can use extension methods to 'extend' the Node element but this looks like it could get quite messy if adding lots of extra functions.
What are the best practises for bring umbraco document types into code?
Hi Shannon
I use uSiteBuilder for all my umbraco projects. It gives you the possibility to create your document types code first and afterwards work with them as strongly typed objects in C# and Razor scripts.
/Carsten
Shannon,
The linq2umbraco project has recently been updated see http://our.umbraco.org/projects/developer-tools/linqtoumbraco-revisited and as suggested by Carsten there is also uSiteBuilder
I am reluctant to use linqtoumbraco - it was removed for a reason.
I have seen uSiteBuilder before but don't know how much it strays away from tradional umbraco. How hard is it to umbraco a site that uses uSiteBuilder e.g from 4.7.1 to 4.8.0
I have never had any issues upgrading a site that was using uSiteBuilder.
Maybe this blogpost can give you a bit more information on the pros and cons of uSiteBuilder.
Thanks for the info
is working on a reply...