Git Product home page Git Product logo

linq.translations's Issues

Is it possible to use translations for navigation properties?

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.

A possible way of triggering the expression without explicity calling the property?

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.

Assembly in NuGet package is not strong named

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.