Saturn.Template icon indicating copy to clipboard operation
Saturn.Template copied to clipboard

Support for SQL Server option in template

Open mtnrbq opened this issue 7 years ago • 1 comments

Hi,

Would you be OK with me contributing a PR to add SQL Server as an option to the template? I was thinking to use a new parameter on the template that will default to SQLite, and be used in the template to control copying and renaming of sources, similar to how it is being done in SAFE-Template

...
      "modifiers": [
        {
          "condition": "(Server == \"suave\")",
          "exclude": [ "**/ServerGiraffe.fs" ],
          "rename": {
            "ServerSuave.fs": "Server.fs"
          }
        },
...

I would also be able to produce a corresponding PR for the dotnet-saturn repo to alter the GEN function.

Thanks

mtnrbq avatar Feb 26 '18 09:02 mtnrbq

@mtnrbq This is a good idea.

You'll also want to update the Saturn CLI to also allow scaffolding new SQL Server variants.

I created this issue + PR to address a SQL Server issue with the scaffold. https://github.com/SaturnFramework/Saturn.Dotnet/issues/10

chinwobble avatar Mar 06 '18 09:03 chinwobble