zzz projects Entity Framework 6 EF 6
Home EF Core Articles Knowledge Base Online Examples
  • Home
  • EF Core
  • Articles
  • Knowledge Base
  • Online Examples

Entity Framework 6 - Knowledge Base (KB)

8 results in tag: expression

The LINQ expression node type 'Invoke' is not supported in LINQ to Entities in entity framework

can anyone help me out in solving my issue. I am using the code given below:...public IEnumerable<InvoiceHeader> Getdata(Expression<Func<InvoiceHeader, bool>> predicate) { return AccountsContext.InvoiceHeaders.Include("Company").Include("Currency") ...
c# entity-framework expression linq predicate
asked by zaheer abbas

How to use a Func in an expression with Linq to Entity Framework?

I am trying to write a linq to entity extension method that takes a Func to select a property Id and compare it against a list of ids....Classes...public class A { public int AId { get; set; } } public class B { public int BId { get; set; } } ...
c# entity-framework expression func linq
asked by David

LINQ multiple join IQueryable modify result selector expression

Imagine the following table structure...--------- TableA ID Name --------- TableB ID TableAID --------- TableC ID TableBID ...I want to define a function that joins these three tables and accepts an ...Expression<Func<TableA, TableB, TableC, T>>... as a...
c# entity-framework expression linq
asked by mhand

Expression of type 'System.Linq.Expressions.Expression cannot be used for parameter of type

I created dynamic select for Type...public static IQueryable<TResult> Select<TSource, TResult>(this IQueryable<TSource> source, TResult result) { var resultType = typeof(TResult); var resultObj = Expression.New(resultType); var receiverPropert...
c# entity-framework-6 expression linq
asked by Hryhorii

Pass expression parameter as argument to another expression

I have a query which filters results:...public IEnumerable<FilteredViewModel> GetFilteredQuotes() { return _context.Context.Quotes.Select(q => new FilteredViewModel { Quote = q, QuoteProductImages = q.QuoteProducts.SelectMany(qp =>...
c# entity-framework expression expression-trees lambda
asked by Jeroen van Tongeren

Moving C# function to expression for use in Entity Framework / SQL Select

I have some small C# functions and computed cols from views that I'd like to move to Expressions so that they execute directly against the datasource in native T/SQL....I can do this inline in the Select, but I'd like to move it to a common function for r...
c# entity-framework expression expression-trees sql-server
asked by Ryan O'Neill

Entity Framework combine lambda expressions from different entities

I have 2 lambda expressions that are virtually the same. One returns ...Expression<Func<Person, bool>>... and the other returns ...Expression<Func<Admission, bool>>.......There is a direct relationship between these 2 entities. A ...Person... can have man...
c# entity-framework entity-framework-6 expression lambda
asked by Gwasshoppa

How to pass an Expression into Entity Framework LINQ query OrderBy clause

I have the following LINQ query:...using (var context = new EUContext()) { var tmp = context.Terms.Include(x => x.StudentCourses) .Where(x => x.StudentID == studentId && x.DepartmentID == departmentId) ....
c# entity-framework-6 expression lambda linq
asked by Sulieman Mansouri

Page 1 of 1
  • 1

Prime Library

Performance

  • Entity Framework Extensions
  • Entity Framework Classic
  • Bulk Operations
  • Dapper Plus

Expression Evaluator

  • C# Eval Expression
  • SQL Eval Function
More Projects...

Related

  • EF Extensions Online Benchmark
  • WIN an EF Extensions license
  • EF6 BatchSaveChanges for only $79
Save your entities 20× faster with EF Extensions
SaveChanges vs BulkSaveChanges

EF Extensions
Try for free now
Get monthly updates by subscribing to our newsletter!
SUBSCRIBE!