C# Class Models.NewsItem

Summary description for New
显示文件 Open project: IowaCodeCamp/IowaCodeCamp Class Usage Examples

Private Properties

Property Type Description
OnContentChanged void
OnContentChanging void
OnCreated void
OnCreatedByChanged void
OnCreatedByChanging void
OnCreatedOnChanged void
OnCreatedOnChanging void
OnIdChanged void
OnIdChanging void
OnIsDeletedChanged void
OnIsDeletedChanging void
OnLoaded void
OnModifiedByChanged void
OnModifiedByChanging void
OnModifiedOnChanged void
OnModifiedOnChanging void
OnTitleChanged void
OnTitleChanging void
OnUserIdChanged void
OnUserIdChanging void
OnValidate void
SetCreated void
SetModified void

Public Methods

Method Description
CreatePost ( string PostTitle, string Post, int AuthorID, System.DateTime DatePosted ) : bool
GetCurrentNews ( ) : object

There are some tricks to get an anonymous type out of a class, wrijo blogged about it

GetMostRecentNewsItem ( ) : object
NewsItem ( ) : System.Data.Linq

Protected Methods

Method Description
SendPropertyChanged ( String propertyName ) : void
SendPropertyChanging ( ) : void

Private Methods

Method Description
OnContentChanged ( ) : void
OnContentChanging ( string value ) : void
OnCreated ( ) : void
OnCreatedByChanged ( ) : void
OnCreatedByChanging ( string value ) : void
OnCreatedOnChanged ( ) : void
OnCreatedOnChanging ( System value ) : void
OnIdChanged ( ) : void
OnIdChanging ( int value ) : void
OnIsDeletedChanged ( ) : void
OnIsDeletedChanging ( bool value ) : void
OnLoaded ( ) : void
OnModifiedByChanged ( ) : void
OnModifiedByChanging ( string value ) : void
OnModifiedOnChanged ( ) : void
OnModifiedOnChanging ( System value ) : void
OnTitleChanged ( ) : void
OnTitleChanging ( string value ) : void
OnUserIdChanged ( ) : void
OnUserIdChanging ( int value ) : void
OnValidate ( System action ) : void
SetCreated ( ) : void
SetModified ( ) : void

Method Details

CreatePost() public static method

public static CreatePost ( string PostTitle, string Post, int AuthorID, System.DateTime DatePosted ) : bool
PostTitle string
Post string
AuthorID int
DatePosted System.DateTime
return bool

GetCurrentNews() public static method

There are some tricks to get an anonymous type out of a class, wrijo blogged about it
public static GetCurrentNews ( ) : object
return object

GetMostRecentNewsItem() public static method

public static GetMostRecentNewsItem ( ) : object
return object

NewsItem() public method

public NewsItem ( ) : System.Data.Linq
return System.Data.Linq

SendPropertyChanged() protected method

protected SendPropertyChanged ( String propertyName ) : void
propertyName String
return void

SendPropertyChanging() protected method

protected SendPropertyChanging ( ) : void
return void