提交 667a9128 编写于 作者: S szjay

no commit message

上级 d74fb3f9
...@@ -306,6 +306,7 @@ where a.name = '{0}'"; ...@@ -306,6 +306,7 @@ where a.name = '{0}'";
private string GetProperties(List<TableFieldInfo> tableFieldList) private string GetProperties(List<TableFieldInfo> tableFieldList)
{ {
bool isMultiKey = false; //是否是多主键。
string properties = ""; string properties = "";
string sql = ReplaceMarco(); string sql = ReplaceMarco();
...@@ -330,7 +331,8 @@ where a.name = '{0}'"; ...@@ -330,7 +331,8 @@ where a.name = '{0}'";
if (tableFieldInfo.PrimaryKey && tableFieldInfo.TableName == txtMainTable.Text) if (tableFieldInfo.PrimaryKey && tableFieldInfo.TableName == txtMainTable.Text)
{ {
properties += "\t\t[Key]\r\n"; //properties += "\t\t[Key]\r\n";
properties += string.Format("\t\t[Key, Column(Order = {0})]\r\n", tableFieldInfo.ColumnId);
} }
else if (tableFieldInfo.Name.ToLower() == "version") else if (tableFieldInfo.Name.ToLower() == "version")
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册