C# Class SIP_Agent.Model.Log

Inheritance: Crud, ICrud
Datei anzeigen Open project: anroots/SIP-Agent

Public Properties

Property Type Description
Person Person

Private Properties

Property Type Description
Log System

Public Methods

Method Description
FindAll ( int Limit ) : IQueryable

Find all non-deleted rows

Load ( int LogId ) : bool

Load the model with the specified ID

New ( ) : int

Creates a new row in the database

Write ( string text, string>.Dictionary replacements ) : int

Wrapper for Write, also includes translation replacements

Write ( string text, bool translate = true ) : int

Write a new log message to the database

Private Methods

Method Description
Log ( ) : System

Don't allow constructing multiple instances from outside the class - use the Instance property instead

Method Details

FindAll() public method

Find all non-deleted rows
public FindAll ( int Limit ) : IQueryable
Limit int Max number of rows to return
return IQueryable

Load() public method

Load the model with the specified ID
public Load ( int LogId ) : bool
LogId int The ID of the row in the database
return bool

New() public method

Creates a new row in the database
public New ( ) : int
return int

Write() public static method

Wrapper for Write, also includes translation replacements
public static Write ( string text, string>.Dictionary replacements ) : int
text string Log text
replacements string>.Dictionary Placeholders for translation replacement
return int

Write() public static method

Write a new log message to the database
public static Write ( string text, bool translate = true ) : int
text string The text of the log message
translate bool
return int

Property Details

Person public_oe property

The person who created the log
public Person,SIP_Agent.Model Person
return Person