C# Class SIP_Agent.Model.Log

Inheritance: Crud, ICrud
Afficher le fichier Open project: anroots/SIP-Agent

Méthodes publiques

Свойство Type Description
Person Person

Private Properties

Свойство Type Description
Log System

Méthodes publiques

Méthode 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

Méthode Description
Log ( ) : System

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

Method Details

FindAll() public méthode

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

Load() public méthode

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

New() public méthode

Creates a new row in the database
public New ( ) : int
Résultat int

Write() public static méthode

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
Résultat int

Write() public static méthode

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
Résultat int

Property Details

Person public_oe property

The person who created the log
public Person,SIP_Agent.Model Person
Résultat Person