Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5978183
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:28:39+00:00 2026-05-22T21:28:39+00:00

I had to develop system for my university which includes tracking of almost all

  • 0

I had to develop system for my university which includes tracking of almost all data (lectures, lecturers, teaching assistants, students, etc..)
My database have like 30 tables, and it’s pretty complex.
I used EF and linq to solve connecting to database and querying from it.
But the more I’m going into, the more my queries become to hard to write, and not to mention to maintain.
Here is the example of one query: http://pastebin.com/Za1cYMPa

It is pretty much in chaos as you can see.

So, am I misusing linq (linq can solve this but on different way) or linq just isn’t for more complex systems like this one?

This is general question, not one to solve particular problem.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T21:28:40+00:00Added an answer on May 22, 2026 at 9:28 pm

    In general, Complexity can be reduced by abstracting your repetitive code into reusable, easily-maintainable components.

    In your particular case, the complexity can be reduced by implementing the Repository and Specification patterns to make your code more consistent, easier to read, and easier to maintain.

    There is a very helpful sequence of articles by Huy Nhuyen explaining the repository pattern, the specification pattern and how to effectively combine them with the Entity Framework for better code. These are available at:

    • Entity Framework 4 POCO, Repository and Specification Pattern
    • Specification Pattern In Entity Framework 4 Revisited
    • Entity Framework 4 POCO, Repository and Specification Pattern [Upgraded to CTP5]
    • Entity Framework 4 POCO, Repository and Specification Pattern [Upgraded to EF 4.1]
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was recently working with a team to develop an online system. We had
I'm using Processing to develop a navigation system for complex data and processes. As
Recently I had to develop a SharePoint workflow, and I found the experience quite
Say if you had to develop a huge windows desktop app what language/technology you
I started Intelligent System studies at a university and our first language is Haskell.
During these days I had to develop applications involved in xml schemas definitions. Well,
Which is a better choice on a development box if you primarily develop Asp.Net
In my company we develop a software product. Until now we haven't had any
When I used to develop in C++, I remember that Visual Studio had an
I want to develop a plugin system using LoadLibrary. My problem is: I want

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.