public static GetEntityRowView ( |
||
config | ||
return | RazorGenerator.Templating.RazorTemplateBase |
public static string Generate(IDbConnection connection, string tableSchema, string table, string module, string connectionKey, string entityClass, string permission, GeneratorConfig config) { var model = GenerateModel(connection, tableSchema, table, module, connectionKey, entityClass, permission, config); return(Templates.Render(GeneratorConfig.GetEntityRowView(config), model)); }
private void GenerateRow() { if (config.RowFieldsSurroundWithRegion) { CreateNewSiteWebFile(Templates.Render(GeneratorConfig.GetEntityRowView(config), model, config), Path.Combine(@"Modules\", Path.Combine(model.Module ?? model.RootNamespace, Path.Combine(model.ClassName, model.RowClassName + ".cs")))); } else { CreateNewSiteWebFile(Templates.Render(GeneratorConfig.GetEntityRowView(config), model), Path.Combine(@"Modules\", Path.Combine(model.Module ?? model.RootNamespace, Path.Combine(model.ClassName, model.RowClassName + ".cs")))); } }
public static string Generate(IDbConnection connection, string tableSchema, string table, string module, string connectionKey, string entityClass, string permission, GeneratorConfig config) { var model = GenerateModel(connection, tableSchema, table, module, connectionKey, entityClass, permission, config); if (config.RowFieldsSurroundWithRegion) { return(Templates.Render(GeneratorConfig.GetEntityRowView(config), model, config)); } else { return(Templates.Render(GeneratorConfig.GetEntityRowView(config), model)); } }