public static string Render(def.BiTemporal definition, string templateName) { var templateDI = new FileInfo(Assembly.GetExecutingAssembly().Location).Directory; var templateFI = new FileInfo(Path.Combine(templateDI.FullName, templateDirectory, templateFilename)); var stg = new st.TemplateGroupFile(templateFI.FullName); var template = stg.GetInstanceOf(templateName); template.Add("def", definition); return(template.Render()); }
public override void EnterTableDef([NotNull] BiTempDefParser.TableDefContext context) { curDef = new def.BiTemporal(); (curDef.Table = new def.ObjectId()).Raw = context.tab.Text; }
public static string Render(def.BiTemporal definition) { return(Render(definition, "create")); }