Example #1
0
        private string MakeCbSourceCode(object ob)
        {
            string st = Empty;

            UpdateCodeAttributes();
            if (ob.GetType() == typeof(TableClass))
            {
                var tc = ob as TableClass;
                st = CodeFactory.Instance().CreateDesignForCbTable(0, tc);
            }
            else if (ob.GetType() == typeof(ViewClass))
            {
                var tc = ob as ViewClass;
                st = CodeFactory.Instance().CreateDesignForCbTable(0, tc);
            }
            return(st);
        }
Example #2
0
 private void UpdateCodeAttributes()
 {
     CodeFactory.Instance().Init(_localNotify, _dbReg.Alias);
     if (rbGenerateInrWithGenerator.Checked)
     {
         CodeFactory.Instance().CodeCreateAttribute.PrimaryFieldType = eCodePrimaryFieldType.GenID;
     }
     else if (rbGenerateGUID.Checked)
     {
         CodeFactory.Instance().CodeCreateAttribute.PrimaryFieldType = eCodePrimaryFieldType.GenGUID;
     }
     else if (rbGenerateOID.Checked)
     {
         CodeFactory.Instance().CodeCreateAttribute.PrimaryFieldType = eCodePrimaryFieldType.GenOID;
     }
     else if (rbGUIDHEXGeneration.Checked)
     {
         CodeFactory.Instance().CodeCreateAttribute.PrimaryFieldType = eCodePrimaryFieldType.GenGUIDHEX;
     }
     CodeFactory.Instance().CodeCreateAttribute.CodeNamespace = txtDBNamespace.Text.Trim();
 }
Example #3
0
        private string MakeGlobalCode()
        {
            var items = selDBObjects.CheckedItemDatas;

            return(CodeFactory.Instance().MakeGlobalCode(items, 0));
        }