Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using as a command-line tool? #29

Open
ashalkhakov opened this issue Nov 7, 2017 · 2 comments
Open

Using as a command-line tool? #29

ashalkhakov opened this issue Nov 7, 2017 · 2 comments

Comments

@ashalkhakov
Copy link

I'd like to use Rezoom.SQL as command-line tool: you give it your migrations, and it generates some source code for you (or indeed a minimal assembly).

Pros:

  • usage on constrainted platforms (I'm looking at .NET CF primarily, but also Mono, Xamarin, etc.)
  • usage in the wider .NET ecosystem (painless interop with C#, VB -- and it also makes it easier to introduce F# in a project)

Cons:

  • needs a separate build step
  • more difficult to iterate compared to F# type provider (still much better, I think, than the hand-written DAL where you need tests to ensure that everything works as expected)
@rspeele
Copy link
Collaborator

rspeele commented Nov 9, 2017

I like this idea, and it seems like it wouldn't be too hard to spit out some source code. It would be nice to do it in a way that doesn't duplicate code with the type provider.

@ashalkhakov
Copy link
Author

Looks like a type provider can be run via fsc on command line. Maybe it's all that I need, will check it out this evening.

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

No branches or pull requests

2 participants