Skip to content

LINQ to SQL Translation with FileBaseContext #40

Description

@hal-la

This is more like a feature request than anything, but it would be a nice-to-have thing. The justification here is that it would let you see how the queries would potentially look like (keyword: potentially) before committing to a non-in-memory based database. Currently, the method ToQueryString() for FileBaseContext simple returns "InMemoryStrings.NoQueryStrings". I assume it's because this is probably a feature not considered at the moment.

public string ToQueryString()
=> "InMemoryStrings.NoQueryStrings";

I tried looking for a library that achieves exactly that, but the closest thing I found turned out to be reliant on the actual type of database provider used, so it's not possible to use with FileBaseContext:

https://github.com/ethanli83/EFSqlTranslator

I understand FileBaseContext isn't an SQL flavored provider, and if this is ever considered at all, I think it'd be apt for the translated queries to somehow stick close as possible to the current SQL standard.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions