C# Class FT.Model.P20QuestionRepository

Inheritance: Repository, IP20QuestionRepository
ファイルを表示 Open project: friism/folketsting

Public Methods

Method Description
BackgroundCommentCount ( int qid ) : int
CreateQuestion ( P20Question q ) : P20Question
Debated ( System.DateTime date, int limit ) : IQueryable
GetQuestion ( int qid ) : P20Question
GetQuestionByAnswerPara ( int apid ) : P20Question
LatestActivity ( int qid ) : System.DateTime
LatestAnsweredByParliament ( int limit ) : IQueryable
LatestByParliament ( int limit ) : IQueryable
LatestByPeople ( int limit ) : IQueryable
LatestWithTitle ( string title, System.DateTime date ) : int
Ministrys ( ) : IEnumerable
PopularByPeople ( System.DateTime date, int limit ) : IQueryable
QuestionCommentCount ( int qid ) : int
Recent ( int limit ) : IQueryable
ValidateQuestion ( P20Question q ) : void

Private Methods

Method Description
CommentCount ( int qid, CommentType type ) : int

Method Details

BackgroundCommentCount() public method

public BackgroundCommentCount ( int qid ) : int
qid int
return int

CreateQuestion() public method

public CreateQuestion ( P20Question q ) : P20Question
q FT.DB.P20Question
return FT.DB.P20Question

Debated() public method

public Debated ( System.DateTime date, int limit ) : IQueryable
date System.DateTime
limit int
return IQueryable

GetQuestion() public method

public GetQuestion ( int qid ) : P20Question
qid int
return FT.DB.P20Question

GetQuestionByAnswerPara() public method

public GetQuestionByAnswerPara ( int apid ) : P20Question
apid int
return FT.DB.P20Question

LatestActivity() public method

public LatestActivity ( int qid ) : System.DateTime
qid int
return System.DateTime

LatestAnsweredByParliament() public method

public LatestAnsweredByParliament ( int limit ) : IQueryable
limit int
return IQueryable

LatestByParliament() public method

public LatestByParliament ( int limit ) : IQueryable
limit int
return IQueryable

LatestByPeople() public method

public LatestByPeople ( int limit ) : IQueryable
limit int
return IQueryable

LatestWithTitle() public method

public LatestWithTitle ( string title, System.DateTime date ) : int
title string
date System.DateTime
return int

Ministrys() public method

public Ministrys ( ) : IEnumerable
return IEnumerable

PopularByPeople() public method

public PopularByPeople ( System.DateTime date, int limit ) : IQueryable
date System.DateTime
limit int
return IQueryable

QuestionCommentCount() public method

public QuestionCommentCount ( int qid ) : int
qid int
return int

Recent() public method

public Recent ( int limit ) : IQueryable
limit int
return IQueryable

ValidateQuestion() public method

public ValidateQuestion ( P20Question q ) : void
q FT.DB.P20Question
return void