Comments (3)
I can't see how this would work - what would you expect to be able to do? I'm having a problem trying to imagine a scenario.
from linq.translations.
+1, I'm not sure why you'd want to overwrite a navigation property.
from linq.translations.
Good question damieng! It is a pretty odd request :-)
We've found Linq.Translations to be a nice retro-fit for customising the properties of an entity in a multi-tenant system.
The possible purpose of customising a navigation property is to allow the tenant to change a relationship.
For example a tenant is allowed to customise the title of a "course", but they also need to be able to customise "approval type" relationship (e.g. approved by a line manager, approved by the head of the business etc)
Unfortunately changing the foreign key wasn't enough to trick EF into switching it.
The linq expression does a join to a customisations table (based upon the logged in user), if a customisation is found it switches the original values for the customised values. It's working pretty well and we've got a workaround for the navigation properties, but I wondered if there was a way to get the navigation properties to work to.
from linq.translations.
Related Issues (8)
- A possible way of triggering the expression without explicity calling the property? HOT 7
- Target .NET Standard 2.0 instead or in addition to 1.0? HOT 3
- .NET Standard 2.0 compatible NuGet HOT 1
- Assembly in NuGet package is not strong named HOT 1
- Make the library compatible with .NET Core
- Move back to csproj-based project
- Target .NET Standard
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from linq.translations.