コード例 #1
0
        /// <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();
        }
コード例 #2
0
 public TableWithColumnsDrop(SysObjects sysObjects)
 {
     _sysObjects = sysObjects;
 }