C# Class GSoft.Dynamite.Examples.Repositories.WallPostRepository

Data access for wall posts
Inheritance: IWallPostRepository
Mostra file Open project: GSoft-SharePoint/Dynamite-2010

Public Methods

Method Description
AllWallPosts ( SPWeb web ) : IEnumerable

Retrieves all wall posts from SharePoint list

Create ( SPWeb web, WallPost newEntity ) : void

Creates a new wall post

WallPostRepository ( ISharePointEntityBinder binder, IWallReplyRepository wallRepliesRepository, ILogger log ) : System.Collections.Generic

Constructor to inject repository dependencies

Method Details

AllWallPosts() public method

Retrieves all wall posts from SharePoint list
public AllWallPosts ( SPWeb web ) : IEnumerable
web SPWeb The current web
return IEnumerable

Create() public method

Creates a new wall post
public Create ( SPWeb web, WallPost newEntity ) : void
web SPWeb The current web
newEntity GSoft.Dynamite.Examples.Entities.WallPost The new wall post entity
return void

WallPostRepository() public method

Constructor to inject repository dependencies
public WallPostRepository ( ISharePointEntityBinder binder, IWallReplyRepository wallRepliesRepository, ILogger log ) : System.Collections.Generic
binder ISharePointEntityBinder The entity binder for mappings between list items and entities
wallRepliesRepository IWallReplyRepository Wall replies repository
log ILogger Logging utility
return System.Collections.Generic