Exemplo n.º 1
0
        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());
        }
Exemplo n.º 2
0
 public override void EnterTableDef([NotNull] BiTempDefParser.TableDefContext context)
 {
     curDef = new def.BiTemporal();
     (curDef.Table = new def.ObjectId()).Raw = context.tab.Text;
 }
Exemplo n.º 3
0
 public static string Render(def.BiTemporal definition)
 {
     return(Render(definition, "create"));
 }