static void Main() { // var sqlConnection = new SqlConnection( "Data Source=localhost\\SQLEXPRESS;Integrated Security=True;Initial Catalog=school_database" ); sqlConnection.Open(); OrmEntitySet <StudentsLessonEntity> subjectsSet = new OrmEntitySet <StudentsLessonEntity>(sqlConnection); subjectsSet.Where(x => x.Id == 5).Delete(); }
public async Task <IEnumerable <T> > FindAsync(Expression <Func <T, bool> > predicateExpression) { return(await Task.Run(() => Context.Where(predicateExpression).Get())); }