C# Класс SIP_Agent.Model.Person

Наследование: Crud, ICrud
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
Contacts IQueryable

Private Properties

Свойство Тип Описание
LoadContacts void

Открытые методы

Метод Описание
FindAll ( int Limit ) : IQueryable

Finds all persons

FullName ( person row ) : string

Take a DB person row and concat first + last names

GetEmail ( ) : string

Get's the person's email

GetPhone ( ) : string

Search for the person's phone

Load ( int PersonId ) : bool

Login ( string Username, string Password ) : bool

Authenticate the user

Logout ( ) : void

Log the user out

New ( ) : int

Creates a new row in the database

Person ( ) : System

Empty constructor

Person ( int PersonId ) : System

Create and load the model

PreviousCalls ( System.DateTime Until ) : call[]

Get previous calls (up to that point) by the caller

Save ( ) : int

Validation checks before saving

Приватные методы

Метод Описание
LoadContacts ( ) : void

Loads the loaded person's contact entries

Описание методов

FindAll() публичный Метод

Finds all persons
public FindAll ( int Limit ) : IQueryable
Limit int The max number of rows to return
Результат IQueryable

FullName() публичный статический Метод

Take a DB person row and concat first + last names
public static FullName ( person row ) : string
row person
Результат string

GetEmail() публичный Метод

Get's the person's email
public GetEmail ( ) : string
Результат string

GetPhone() публичный Метод

Search for the person's phone
public GetPhone ( ) : string
Результат string

Load() публичный Метод

public Load ( int PersonId ) : bool
PersonId int
Результат bool

Login() публичный Метод

Authenticate the user
public Login ( string Username, string Password ) : bool
Username string
Password string
Результат bool

Logout() публичный Метод

Log the user out
public Logout ( ) : void
Результат void

New() публичный Метод

Creates a new row in the database
public New ( ) : int
Результат int

Person() публичный Метод

Empty constructor
public Person ( ) : System
Результат System

Person() публичный Метод

Create and load the model
public Person ( int PersonId ) : System
PersonId int
Результат System

PreviousCalls() публичный Метод

Get previous calls (up to that point) by the caller
public PreviousCalls ( System.DateTime Until ) : call[]
Until System.DateTime Previous calls up to that point
Результат call[]

Save() публичный Метод

Validation checks before saving
public Save ( ) : int
Результат int

Описание свойств

Contacts защищенное свойство

Holds phonebook entries
protected IQueryable Contacts
Результат IQueryable