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)

5 results in tag: count

In Entity Framework, how can I count associated entities without having to get them?

I've been wondering about this one for a while now, so I thought it would be worth using my first Stack Overflow post to ask about it....Imagine I have a discussion with an associated list of messages:...DiscussionCategory discussionCategory = _repository...
count entity-framework
asked by Oligarchia

How do I retrieve the row number using Entity Framework and LINQ?

Hope someone can help me out here as I'm a little stuck....I'm building a service in front of a hiscore database for a game....The database have the following two tables:...CREATE TABLE [dbo].[PB_HiscoreEntry] ( [Id] UNIQUEIDENTIFIER NOT NULL...
count entity-framework row
asked by Mads Laumann

SQL to Entity Framework Count Group-By

I need to translate this ...SQL... statement to a ...Linq-Entity... query......SELECT name, count(name) FROM people GROUP by name
count entity-framework group-by linq-to-entities sql
asked by fefwfefefwfwe

Group and Count in Entity Framework

I have a table with Logs and I am counting the Logs per day as follows:...// Count logs by day IList<DataModel> models = _context.Logs .Where(x => x.Created >= dateMinimum && x.Created <= dateMaximum) .GroupBy(x => new { Year = x.Created.Year, Month =...
c# count entity-framework linq-to-entities
asked by Miguel Moura

LINQ to Entities group by and Count()

I have the following LINQ-to-Entities query...from r in ctx.Rs join p in ctx.Ps on r.RK equals p.RK group r by r.QK into gr select new { QK = (int)gr.Key, Num = gr.Count() } ...that runs against this schema...Table P Table R Table Q PK* RK ----> RK* ...
c# count entity-framework group-by linq
asked by Jim S

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!