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 8060891
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T10:08:53+00:00 2026-06-05T10:08:53+00:00

First – I admit to my mistake! But I need to know if I

  • 0

First – I admit to my mistake!

But I need to know if I should try to fix it, or just live with the consequences.

I created a new solution (C#, VS2010) – let’s call it ‘F.PIA’, for ease of reference. One of the things this solution does is work with a SQL Server table that – yep, you guessed it – is also named ‘PIA’. So everything about my project – including the main namespace – is F.PIA.

I’m using F.A.PIA, to access the PIA table; this assembly includes a Table and a public partial class PIA.

In my solution, I can distinguish the two, but I find references to F.A.PIA to be clumsy (the actual names are significantly longer than that example).

So I tried to Refactor, w/o success. I’m pretty sure the renaming changes something in the DataSetDesigner, or doesn’t change something there (or a related item) – but I’m not nearly proficient enough to figure out what, exactly, goes wrong – nor how to fix it. (Yes, I did have a working backup before the Refactor – YAY.)

Should I just leave it as is, and learn from my mistake for next time? or is there a way to rename everything except the references to my table, and get everything to behave?

Thanks! — Scott M

  • 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-05T10:08:55+00:00Added an answer on June 5, 2026 at 10:08 am

    Options:

    1. Create namespace alias for the C# namespace by the using directive.
    2. Create a class wrapper which handles the PIA table and provides a more user friendly way of accessing that table.
    3. Fully quailify the namespace items for the C# namespace.
    4. Rename the table, refactor, then change the name back.
    5. Create a new solution which does not have the naming collisions.
    6. Live with the idiosyncrasis as is…
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First you should know I have looked into many questions and none of them
First of all, I know how to build a Java application. But I have
first off I'm a noob to PHP but here is my problem. I am
first sorry if its a stupid question but im lost a bit. So when
First time posting here so I'm sorry if I mess up. I need to
First off, I'll say I'm not the most competent C++ programmer, but I'm learning,
First of all I don't know If controller is the right word. What I
First, I have a list of QWidget s that I won't know the length
First off, I'm pretty new so I hope I hadn't missed anything too trivial.
First, please forgive (and correct!) any misconceptions - I'm brand new to anything .NET.

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.