예제 #1
0
        private string GetNodeConfigAlterDDL()
        {
            StringBuilder result = new StringBuilder();

            foreach (var item in this.ToNodeFieldList())
            {
                result.AppendLine(DDLHelper.GetNodeFieldDDL(item));
            }
            return(result.ToString());
        }
예제 #2
0
        private string GetNodeConfigAlterDDL()
        {
            StringBuilder result           = new StringBuilder();
            var           defaultFieldList = S_DOC_Space.DefaultNodeAttrArray.Select(a => new Field {
                FieldName = a.AttrField, DataType = a.DataType
            }).ToList();

            defaultFieldList.AddRange(S_DOC_Space.DefaultNodeAttrArray.Where(a => a.InputType.IndexOf(ControlType.ButtonEdit.ToString()) >= 0).Select(a => new Field {
                FieldName = a.AttrField + "Name", DataType = a.DataType
            }).ToList());
            foreach (var item in defaultFieldList)
            {
                result.AppendLine(DDLHelper.GetNodeFieldDDL(item));
            }
            foreach (var item in this.ToNodeFieldList())
            {
                result.AppendLine(DDLHelper.GetNodeFieldDDL(item));
            }
            return(result.ToString());
        }