
Introducing IModelCacheKeyFactory to a C# REST API project
- or -
Post a project like this995
£21/hr(approx. $28/hr)
- Posted:
- Proposals: 10
- Remote
- #3905252
- Awarded
WordPress Expert✮Shopify Expert✮Graphic Designer✮AutoCAD 2D & 3D✮CV Writer & Designer✮Fullstack developer

PPH Top 1% WordPress | Shopify | PHP | UI/UX | iOS/App | SEO |CRO| Webflow | Wix | Web Development

Custom AI Model, C#.NET, ASP.NET Web, AI-Driven DevOps, Mobile App, MVC, Windows Application, iOS & Android App development, Custom Software Development, Bespoke Software, TOP CERT

1400+ Projects (iOS | Android | Mac OS | Web | Win | BlockChain | IOT | React | Dotnet | Angular | Laravel )
90063993636573292048580572749135979721066242377178351093437049056997
Description
Experience Level: Intermediate
Hi ,
I have a C# REST API project that I am trying to introduce IModelCacheKeyFactory.
The reason I want this introduced is so I can cover a requirement where I can change multiple models dynamically that has the same table structure.
Similarly to this: https://yanxiaodi.medium.com/mapping-the-model-to-multiple-tables-with-entityframework-core-b46bdeed8661
Problem:
Database has multiple tables that keep getting regenerated every date in the format of :
AA_CITY
AB_CITY
AC_CITY
All tables have the exact same table structure.
I want to be able to pass "AA" for example in a GET REST method and the REST to be reading the correct table.
PS. If someone has an alternative suggestion of a dynamic method/procedure that returns what I am trying to establish (without affecting performance) , I would love to hear it as I want to cover future scenarios where other tables come into the picture that again have the same table structure but have a different name like for example
AA_CITY
AB_CITY (Same structure as AA_CITY)
AC_CITY (Same structure as AA_CITY)
AA_ADDRESS
AB_ADDRESS (Same structure as AA_ADDRESS)
AC_ADDRESS (Same structure as AA_ADDRESS)
P.S I do not wish to pass sql injections for this, I want this in a proper REST API structure
Thanks
I have a C# REST API project that I am trying to introduce IModelCacheKeyFactory.
The reason I want this introduced is so I can cover a requirement where I can change multiple models dynamically that has the same table structure.
Similarly to this: https://yanxiaodi.medium.com/mapping-the-model-to-multiple-tables-with-entityframework-core-b46bdeed8661
Problem:
Database has multiple tables that keep getting regenerated every date in the format of :
AA_CITY
AB_CITY
AC_CITY
All tables have the exact same table structure.
I want to be able to pass "AA" for example in a GET REST method and the REST to be reading the correct table.
PS. If someone has an alternative suggestion of a dynamic method/procedure that returns what I am trying to establish (without affecting performance) , I would love to hear it as I want to cover future scenarios where other tables come into the picture that again have the same table structure but have a different name like for example
AA_CITY
AB_CITY (Same structure as AA_CITY)
AC_CITY (Same structure as AA_CITY)
AA_ADDRESS
AB_ADDRESS (Same structure as AA_ADDRESS)
AC_ADDRESS (Same structure as AA_ADDRESS)
P.S I do not wish to pass sql injections for this, I want this in a proper REST API structure
Thanks
Demetris K.
100% (1)Projects Completed
1
Freelancers worked with
1
Projects awarded
33%
Last project
13 Apr 2023
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies