Skip to content

Commit

Permalink
Merge pull request #4101 from abingoal/zh_CN-doc
Browse files Browse the repository at this point in the history
[doc][zh-CN] deprecate readonly in favor of update+insert
  • Loading branch information
pleerock committed May 9, 2019
2 parents 9f39ff6 + 8f89b4f commit 71cfefd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docs/zh_CN/decorator-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,9 @@ export class User {
- `width: number` - 列类型的显示宽度。 仅用于 [MySQL integer types](https://dev.mysql.com/doc/refman/5.7/en/integer-types.html)
- `onUpdate: string` - `ON UPDATE` 触发器。仅用于 [MySQL](https://dev.mysql.com/doc/refman/5.7/en/timestamp-initialization.html).
- `nullable: boolean` - 设置列值`NULL``NOT NULL`
默认值是 `nullable: false`.
- `readonly: boolean` - 指示"save"操作是否未更新列值。 这意味着只有在第一次插入对象时才能写入此值
默认值是 `false`
默认值是 `nullable: false`
- `update: boolean` - 指示"save"操作是否更新列值。如果为false,则只能在第一次插入对象时编写该值
默认值为"true"
- `select: boolean` - 定义在进行查询时是否默认隐藏此列。 设置为`false`时,列数据不会显示标准查询。 默认值`selecttrue`
- `default: string` - 添加数据库级列的`DEFAULT`值。
- `primary: boolean` - 将列标记为主列。 与`@PrimaryColumn`使用相同。
Expand Down
3 changes: 2 additions & 1 deletion docs/zh_CN/entities.md
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,8 @@ name: string;
- `width: number` - 列类型的显示范围。 仅用于[MySQL integer types](https://dev.mysql.com/doc/refman/5.7/en/integer-types.html)
- `onUpdate: string` - `ON UPDATE`触发器。 仅用于 [MySQL](https://dev.mysql.com/doc/refman/5.7/en/timestamp-initialization.html).
- `nullable: boolean` - 在数据库中使列`NULL``NOT NULL`。 默认情况下,列是`nullable:false`
- `readonly: boolean` - 指示`save`操作是否未更新列值。 这意味着只有在第一次插入对象时才能写入此值。 默认值为`false`
- `update: boolean` - 指示"save"操作是否更新列值。如果为false,则只能在第一次插入对象时编写该值。
默认值为"true"。
- `select: boolean` - 定义在进行查询时是否默认隐藏此列。 设置为`false`时,列数据不会显示标准查询。 默认情况下,列是`select:true`
- `default: string` - 添加数据库级列的`DEFAULT`值。
- `primary: boolean` - 将列标记为主要列。 使用方式和`@ PrimaryColumn`相同。
Expand Down

0 comments on commit 71cfefd

Please sign in to comment.