C# Class Tasky.DAL.TodoRepository

显示文件 Open project: conceptdev/xamarin-samples

Protected Properties

Property Type Description
dbLocation string

Public Methods

Method Description
DeleteTodo ( int id ) : int
GetTodo ( int id ) : TodoItem
GetTodos ( ) : IEnumerable
SaveTodo ( TodoItem item ) : int
TodoRepository ( SQLiteConnection conn, string dbLocation ) : System

Method Details

DeleteTodo() public method

public DeleteTodo ( int id ) : int
id int
return int

GetTodo() public method

public GetTodo ( int id ) : TodoItem
id int
return Tasky.BL.TodoItem

GetTodos() public method

public GetTodos ( ) : IEnumerable
return IEnumerable

SaveTodo() public method

public SaveTodo ( TodoItem item ) : int
item Tasky.BL.TodoItem
return int

TodoRepository() public method

public TodoRepository ( SQLiteConnection conn, string dbLocation ) : System
conn SQLiteConnection
dbLocation string
return System

Property Details

dbLocation protected_oe static_oe property

protected static string dbLocation
return string