Пример #1
0
        private void BtnGenerateEntity_Click(object sender, EventArgs e)
        {
            string space = this.txtClassNameSpace.Text.Trim();

            if (string.IsNullOrEmpty(space))
            {
                MessageBox.Show("参数/实体类命名空间未设定");
                return;
            }
            GenerateEntity ge = new GenerateEntity(conn);

            ge.ClassNameSpace = space;
            string entity = ge.BeginGenerateEntityClass(this.cboDbName.Text, this.cboTable.Text, this.cboTable.Text);

            this.rtbEntity.Text    = entity;
            this.rtbQuery.Text     = ge.BeginGenerateEntityQuery(this.cboDbName.Text, this.cboTable.Text);
            this.rtbEntityDto.Text = ge.BeginGenerateEntityDto(this.cboDbName.Text, this.cboTable.Text);
        }
Пример #2
0
 private void BtnGenerateEntity_Click(object sender, EventArgs e)
 {
     string space = this.txtClassNameSpace.Text.Trim();
     if(string.IsNullOrEmpty(space))
     {
         MessageBox.Show("参数/实体类命名空间未设定");
         return;
     }
     GenerateEntity ge = new GenerateEntity(conn);
     ge.ClassNameSpace = space;
     string entity = ge.BeginGenerateEntityClass(this.cboDbName.Text, this.cboTable.Text, this.cboTable.Text);
     this.rtbEntity.Text = entity;
     this.rtbQuery.Text = ge.BeginGenerateEntityQuery(this.cboDbName.Text, this.cboTable.Text);
     this.rtbEntityDto.Text = ge.BeginGenerateEntityDto(this.cboDbName.Text, this.cboTable.Text);
 }
Пример #3
0
 private void BtnGenerateEntity_Click(object sender, EventArgs e)
 {
     GenerateEntity ge = new GenerateEntity(conn);
     string entity = ge.BeginGenerateEntityClass(this.cboDbName.Text, this.cboTable.Text, this.cboTable.Text);
     this.rtbEntity.Text = entity;
     this.rtbQuery.Text = ge.BeginGenerateEntityQuery(this.cboDbName.Text, this.cboTable.Text);
     this.rtbEntityDto.Text = ge.BeginGenerateEntityDto(this.cboDbName.Text, this.cboTable.Text);
 }