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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T10:29:29+00:00 2026-05-11T10:29:29+00:00

I have a wrapper project I created to talk to a 3rd party API.

  • 0

I have a wrapper project I created to talk to a 3rd party API.

In another project, lets call it MyBusinessLayer.csproj. It uses this API by adding the wrapper project as a project reference so that it can use various classes to call API methods via HttpRequest / HttpResopnse.

Now I need to do a bulk update by calling a wrapper class called UpdateRequest.cs and loop through each of the records in our database and using some of the fields from each of those records make an API call to update each record.

Problem is this:

1) I want to create like a BulkUpdateRequest.cs in my wrapper project.
2) Problem is that it would have to take a generic list of objects into the constructor. This generic list of objects (the records I’m pulling from our database), the Object’s .cs resides in MyBusinessLayer.csproj since it represents the table and instance of each record for that table in my DB. If I send a generic list of those objects to my wrapper. BulkUpdate.cs class that does the looping and sending of the request to update all those records in the generic list, I’ve just introduced a circular reference because MyBusinessLayer.csproj is referencing MyWrapperProject.csproj. And then MyWrapperProject.csproj is referencing a class in MyBusinessLayer.csproj because it’s taking in a list of generic object instances that represent records in our DB.

So I guess how is the best way to keep a circular reference from happening? I guess I could instead create the BulkUpdate logic in MyBusinessLogic.csproj and that way, I’m jsut referencing the UpdateRequest.cs and doing the loop in some class I create in MyBusinessLayer.cs and only using the UpdateRequest.cs class from our wrapper project and not sending any of the MyBusinessLayer classes to that wrapper project.

I hope this makes sense…

  • 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. 2026-05-11T10:29:30+00:00Added an answer on May 11, 2026 at 10:29 am

    I am going to operate under the assumption that the ‘generic list of objects’ you refer to are of some Type that is defined in your MyBusinessLayer project and not System.Object. I think you say that.

    A solution would be to make both MyBusinessLayer and MyWrapperProject depend on a third project (MyAbstractDefinitions) which contained IDatabaseObject.cs and any other interface types derived from IDatabaseObject. Neither MyBusinessLayer nor MyWrapperProject should depend on the concrete implementation of this object that represents records in the database. Both projects should depend on an abstract definition.

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

Sidebar

Ask A Question

Stats

  • Questions 230k
  • Answers 230k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I second Cassy's proposed notation. My remarks: I'm not really… May 13, 2026 at 1:57 am
  • Editorial Team
    Editorial Team added an answer Why not cast the control to the appropriate date/time picker… May 13, 2026 at 1:57 am
  • Editorial Team
    Editorial Team added an answer I am not sure whether this helps or not. But… May 13, 2026 at 1:57 am

Related Questions

I have a problem with a simple included file. The file being included is
I am working on a .NET 3.5 project which consists of a web application
Is it possible to have a C static library API, which uses C++ internally
My project involves Qt plus and unnamed 3rd party physics simulation library. The way

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.