C# 클래스 SIP_Agent.Model.Person

상속: Crud, ICrud
파일 보기 프로젝트 열기: anroots/SIP-Agent 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
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