TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Arvind Chourasiya
NA
933
133.9k
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.
Reply
Answers (
1
)
How to write a linq query to match this sql one ... ?
Create dynamic where and select conditions