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

  • SEARCH
  • Home
  • 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 8423387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T03:42:37+00:00 2026-06-10T03:42:37+00:00

I have the following solution structure: Portal.DataAccess -> Class library project with methods against

  • 0

I have the following solution structure:

Portal.DataAccess -> Class library project with methods against database…

Portal.DomainEntities -> Class library project (Where i have my storage classes)

Portal.Business -> class library (proxy between front end and data access)

Portal.Web -> class library with references to web context (system.web.mvc, etc…)

Portal.Web.Website1 -> My website 1

Portal.Web.Website2 -> My website 2

….

Portal.Web.WebsiteN -> My website N

All my websites uses the same queries, and i would like to create a file with the following structure:

<?xml version="1.0" encoding="utf-8" ?>
<Queries>
      <Query>
        <Name>DetailArticle</Name>
        <Value>
          <![CDATA[
             select * from Articles where ID={ID}
          ]]>
        </Value>
 ..... All my queries here
</Queries>

Where do you think is the best place to put this xml file that will be deserialized for use? I think that could be good to have it into Portal.DataAccess as an embedded resource but my issue is that i dont want to access to disk everytime i want to do a query. In addition, this project doesnt contains references to WebContext (so i cannot put this in cache). For this reason i was thinking to put this file on Portal.Web which is a project with common funcionality for all websites.

What’s your recomendation? Is there any other place (apart from web cache) to put the deserialized class of the xml?

  • 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-06-10T03:42:39+00:00Added an answer on June 10, 2026 at 3:42 am

    I think the best place will be dataacess project. Also, you could add this file to all other projects not directly, but using “add as link” option. It will allow you to change stuff only in one place and all the changes will automatically done in all ‘related’ files.

    Also, if you want to have this queries inmemory during you app working, than it could be reasonable to put file to the root of directory and implement simple static class, which will be read this queries when applcation start and then using this class to read queries you need from memory.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following structure in my web solution: Domain DataAccess ApplicationServices Web Tests
I have following package structure and classes. package X Class A private string fieldX;
I have a project structure that looks like the following: [Solution Name] doc (documentation)
Hi Stackoverflow people, in my current project, I have the following model structure: class
We have a Asp.net webforms webapplication. The solution has the following structure: MySolution\ MySolution.Main\
I currently have the following in one solution: Core Project (data access, biz logic,
I have a solution with the following structure: Solution Main Exe Utilities When I
I have the following object structure. public class Study { public Guid? PreviousStudyVersionId {
I have the following output structure of executables in my solution: %ProgramFiles% | +-[MyAppName]
Currently, I have the following structure for my project Foo : foo-parent +- pom.xml

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.