Arvind Chourasiya

Arvind Chourasiya

  • NA
  • 933
  • 130.6k

How to calling Get method of Sq-lite?

Jun 2 2016 3:06 AM
Hello everyone,
I have one method in Repository class i want to call that from my registration class
method is-->
public async Task<T> Get(Expression<Func<T, bool>> predicate)
{
return await _db.FindAsync<T>(predicate);
}
how can i call that one. i'm trying like that
 {
Repository<Registration> repo = new Repository<Registration>();
Registration Entity_Reg = new Registration();
string query = "select * from registration where fname=" + txtUame.Text + "and Password=" + txtPass.Text + "";
var result = repo.Get(query,____);
it is  showing error.
please tell me how to call this method in proper way. 
 
 

Answers (1)