Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Is there a documentation on how to use sql query in umbraco ?
Umbraco uses PetaPOCO as mini ORM, so you can do a query super easy like that:
long count = ApplicationContext.Current.DatabaseContext.Database.ExecuteScalar<long>("SELECT Count(*) FROM articles");
Really nice articles about how to use PetaPOCO with Umbraco - https://www.wiliam.com.au/wiliam-blog/using-petapoco-with-umbraco-is-pretty-sweet
Did you solve this issue?
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted