/// <summary> /// Loop thru the columns and generate rhe properties /// </summary> /// <param name="sysColumns"></param> /// <returns></returns> private string GetProperties(SysObjects sysObjects) { var template = Global.TemplateManager[TemplateType.Properties]; var sbProperty = new StringBuilder(); sysObjects.Columns.ToList().ForEach(x => { sbProperty.Append( template.Render(Hash.FromAnonymousObject(new { column = new SysColumnsDrop(x) //template in propertiestemplateservice }))); }); return sbProperty.ToString(); }
public TableWithColumnsDrop(SysObjects sysObjects) { _sysObjects = sysObjects; }