API
Whats the deal with SF and the OpenAccess API?
Is there an embedded ObjectScope provider somwhere to run extent linq queries against? Do you guys have a ready-made scope to use that unloads itself?
...do we not have to worry about that?
Hello Steve,
We have our wrapper for Linq - Linq to Sitefinity. You can take a look at the developer manual to see how to use Linq queries with our Manager classes to retrieve data. Bellow are a couple of quick examples of using Linq queries with the managers:
var manager = ContentManager.GetManager();
var item = manager.GetContent().Where(t => t.Title ==
"Content Title"
).FirstOrDefault();
if
(item !=
null
)
Response.Write(item.Author);
using
Telerik.Sitefinity.Modules.Blogs;
using
Telerik.Sitefinity.Blogs.Model;
..
var manager = BlogsManager.GetManager();
var posts = manager.GetBlogPosts().Where(t => t.Parent.Title ==
"MyBlog"
);
posts = posts.Where(t => t.DateCreated == DateTime.Today.AddDays(-30));