コード例 #1
0
        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();
        }
コード例 #2
0
 public async Task <IEnumerable <T> > FindAsync(Expression <Func <T, bool> > predicateExpression)
 {
     return(await Task.Run(() => Context.Where(predicateExpression).Get()));
 }