-
hi, i wonder why are common props (named startProps in build_lib.fsx) dropped in translation from original DacFx C# to F#, i'm interested particularly in StartOffset and FragmentLength, but all might be handy (full list https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.transactsql.scriptdom.tsqlfragment?view=sql-dacfx-150#properties ) one of my intentions is to parse some TSQL string and then manipulate that same TSQL string, so i don't loose original formatting for example: from a script containing create scalar function statement, i would like to create:
so let's say emulation of header/body separation in Oracle i'm aware of possibility to unwrap parts of AST, replace its parts or append to another AST and let TSQL generator do its job (as in Util.renderCs(frag, opts)), but that breaks original formatting is there some way how to achieve this with FsSqlDom? thanks, joe |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Hi Joe, It wasn't really needed for my use cases, but you are the second person who has asked about it, so I added a way to get that information these 2 commits: After those commits, you should be able to pass in a |
Beta Was this translation helpful? Give feedback.
Hi Joe,
It wasn't really needed for my use cases, but you are the second person who has asked about it, so I added a way to get that information these 2 commits:
3188e3a
f2baa12
After those commits, you should be able to pass in a
Dictionary<obj, ScriptDom.TSqlFragment>
to the.FromCs(...)
methods, and then you can use it to map back to the C# version, which has that information.cc @smoothdeveloper