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)

4 results in tag: max

In Linq to Entities / Entity SQL with type conversion, choose Max.

I'm trying to create some CRUD functionality for a legacy database and using the Entity Framework as an ORM tool. One table, 'Sites', has a Guid type 'Id' column which is never seen by the users and an integer type 'SiteId' which the users use to identitf...
entity-framework linq max select type-conversion
asked by andrej351

How can I use Entity Framework to determine the maximum value of a column?

To get maximum value of a column that contains integer, I can use the following T-SQL comand...SELECT MAX(expression ) FROM tables WHERE predicates; ...Is it possible to obtain the same result with Entity Framework....Let's say I have the following model....
c# entity-framework max sql
asked by Richard77

Using max() function with entity framework throws an exception

So I need to get the max value of a column (or the last one) using entity framework and both of these queries throw exceptions:...(The ID I'm trying to retrieve is of type varchar, but it works in raw sql, I think it should work here too)...This one:...st...
entity-framework max
asked by Alex Terreaux

How to get in LINQ one row for each key

I have list with:...EMP_ID | UPDATED_DATE | MARK ------ | ------------ | ---- 111 | 01/01/2015 | 99 111 | 01/01/2013 | 85 111 | 01/01/2017 | 80 222 | 01/01/2011 | 70 222 | 01/01/2015 | 55 222 | 01/01/2002 | 60 ...
c# entity-framework-6 linq max
asked by user1012506

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!