Hello, Just today I was wondering about replacing DbMetal with a set of XSLT template translating a vendor indipendent XML rapresentation of the db schema.
I could use T4 for generating the XML, I suppose... Actually a limit of DbMetal (afaik) is that I can not tweak the generation to my needs (we need DbLinq as a (as simple as possible) Data Access Layer, so for example we need not any event or any EntitySet in our mappings...). As far as I read, the DbMetal code doesn't allow such a strategy injection. With XSLT template we could change deeply the output code by selecting the templates to use. BTW, even if not through an xml way, it would be really useful. Giacomo On Wed, Mar 4, 2009 at 7:09 PM, Miguel de Icaza <[email protected]>wrote: > > Hello folks, > > This weekend at ALT.NET <http://alt.net/> I had a chance of talking to > Damien Guard from > the SQL Server team who wrote a set of TT templates that replace the > SqlMetal generator. > > Damien said that the templates generate better code than SqlMetal ever > did, the output is easy to tune and can easily be expanded to do more/ > less work by just changing the templates. > > The code is under an open source license (MS-PL) and it is available > here: > > http://l2st4.codeplex.com/ > > These TT templates can be consumed directly by Visual Studio, here is > more information about TT: > > > http://www.hanselman.com/blog/T4TextTemplateTransformationToolkitCodeGenerationBestKeptVisualStudioSecret.aspx > > We have now implemented a TT processor for the MonoDevelop IDE and we > are going to provide a command line tool that can be used on Unix/ > Linux systems to run the tool as well from the command line. > > I figured, perhaps this can be used to replace the Metal tool in > DbLinq as well? > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "DbLinq" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/dblinq?hl=en -~----------~----~----~----~------~----~------~--~---
