Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Answer
How to calling Get method of Sq-lite?
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
Arvind Chourasiya
8y
346
1
Reply
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.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
How to write a linq query to match this sql one ... ?
Create dynamic where and select conditions