damieng / linq.translations Goto Github PK
View Code? Open in Web Editor NEWDeclare properties on an object that can be translated by LINQ
License: Microsoft Public License
Declare properties on an object that can be translated by LINQ
License: Microsoft Public License
Currently, projects that use linq.translations won't compile, when targeting .NET Core.
Hi,
Is it possible to use translations for navigation properties?
I'm using foreign keys in dbcontext, and have succesfully overriden the FK value via an expression. But I cannot think of a way of overriding the actual navigation?
-thanks
Alex.
@davidfowl, @damieng I was wondering if the package should target 2.0 instead of 1.0 as the project currently does. I know some reasons we usually recommend 2.0, but because this one doesn’t have any dependencies, I am not sure the same reasons apply.
First of all, great project! I think it might be a lifesaver for me, but I'm having a little trouble with something.
I've found that when not explicitly calling the wrapped property that the expression isn't called. For example the top one works ok as I'm doing lr.Title, however the second example doesn't work as I'm getting the entire entity.
var thisWorks = (from lr in LearningResources
select new
{
lr.Title
}).WithTranslations();
var thisDoesNotWork = (from lr in LearningResources
select lr).WithTranslations();
thisWorks.Dump();
thisDoesNotWork.Dump();
I'm guessing this is how it's meant to work, but it just took me a little while to figure it out. Unless I'm missing something?
Is there a way I can trigger calling my custom "Title" if I'm calling the entire entity?
-thanks
Alex.
For those of us who write enterprise applications and make use of the GAC or otherwise want to protect the integrity of our applications, signing our projects with strong names is a must.
As such, anything we reference must also be strong named. The Microsoft.Linq.Translations assembly that comes down from NuGet is not, but it should be.
So that this can be compiled with released versions of Visual Studio.
Hi Damien,
Could you publish a Nuget for the .NET Standard 2.0 compatible version of your library?
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.