C# Class FT.Model.LawRepository

Inheritance: Repository, ILawRepository
Datei anzeigen Open project: friism/folketsting Class Usage Examples

Public Methods

Method Description
CommentCount ( LawStage thestage, int lawid ) : int
CommentCount ( int lawid ) : int
DeliberationCommentCount ( int delibid ) : int
IsAfterSecond ( int lawid ) : bool
IsInStage ( LawStage stage, int lawid ) : bool
IsPassed ( int lawid ) : bool
IsProposed ( int lawid ) : bool
LatestActivity ( int lawid ) : System.DateTime
LawChange ( int elementid ) : LawChange
Popular ( System.DateTime date, int limit ) : IQueryable
RecentInDeliberation ( LawStage deliberation, int limit ) : IQueryable
RecentPassed ( int limit ) : IQueryable
RecentProposed ( int limit ) : IQueryable
Section ( int elementid ) : Section
SingleDeliberation ( int lawid, LawStage delibnr ) : Deliberation
SingleLaw ( int lawid ) : Law
SpeechPara ( int elementid ) : SpeechPara
TopDebated ( System.DateTime date, int limit ) : IQueryable

Private Methods

Method Description
ValidLaws ( ) : IQueryable

Method Details

CommentCount() public method

public CommentCount ( LawStage thestage, int lawid ) : int
thestage LawStage
lawid int
return int

CommentCount() public method

public CommentCount ( int lawid ) : int
lawid int
return int

DeliberationCommentCount() public method

public DeliberationCommentCount ( int delibid ) : int
delibid int
return int

IsAfterSecond() public method

public IsAfterSecond ( int lawid ) : bool
lawid int
return bool

IsInStage() public method

public IsInStage ( LawStage stage, int lawid ) : bool
stage LawStage
lawid int
return bool

IsPassed() public method

public IsPassed ( int lawid ) : bool
lawid int
return bool

IsProposed() public method

public IsProposed ( int lawid ) : bool
lawid int
return bool

LatestActivity() public method

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

LawChange() public method

public LawChange ( int elementid ) : LawChange
elementid int
return FT.DB.LawChange

Popular() public method

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

RecentInDeliberation() public method

public RecentInDeliberation ( LawStage deliberation, int limit ) : IQueryable
deliberation LawStage
limit int
return IQueryable

RecentPassed() public method

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

RecentProposed() public method

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

Section() public method

public Section ( int elementid ) : Section
elementid int
return FT.DB.Section

SingleDeliberation() public method

public SingleDeliberation ( int lawid, LawStage delibnr ) : Deliberation
lawid int
delibnr LawStage
return FT.DB.Deliberation

SingleLaw() public method

public SingleLaw ( int lawid ) : Law
lawid int
return FT.DB.Law

SpeechPara() public method

public SpeechPara ( int elementid ) : SpeechPara
elementid int
return FT.DB.SpeechPara

TopDebated() public method

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