Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问我新创建一个表或更新表后,怎么生成model啊 #3

Open
christan-duplicate opened this issue Mar 7, 2021 · 3 comments

Comments

@christan-duplicate
Copy link

请问我新创建一个表或更新表后,怎么生成model啊

@nnhy
Copy link
Member

nnhy commented Mar 7, 2021

参考文档教程,借助码神工具XCoder

数据模型与代码生成
https://www.yuque.com/smartstone/xcode/model

@christan-duplicate
Copy link
Author

参考文档教程,借助码神工具XCoder

数据模型与代码生成
https://www.yuque.com/smartstone/xcode/model

好的,多谢,用码神生成mysql的model,Description全是"System.Byte[]"

<Table Name="Options" Description="System.Byte[]">
    <Columns>
      <Column Name="Id" DataType="Int32" RawType="int(11)" Identity="True" PrimaryKey="True" Description="选项自增Id" />
      <Column Name="Kind" DataType="String" RawType="varchar(50)" Nullable="False" Description="选项分类" />
      <Column Name="Name" DataType="String" RawType="varchar(100)" Master="True" Length="100" Nullable="False" Description="选项名称" />
      <Column Name="Value" DataType="String" RawType="varchar(100)" Length="100" Nullable="False" Description="选项值" />
      <Column Name="Sequence" DataType="Int32" RawType="int(11)" Description="排序" />
      <Column Name="IsHide" DataType="Int32" RawType="int(11)" Description="是否隐藏" />
      <Column Name="IsDel" DataType="Int32" RawType="int(11)" Description="是否删除,已经删除到回收站" />
    </Columns>
  </Table>

@nnhy
Copy link
Member

nnhy commented Mar 8, 2021

那里可能有bug,我们检查一下,你也可以看看代码,提交PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants