属性
1. 属性是什么?
属性对应于数据库表中的字段,如学生表中的年龄
2. 对属性的封装

property中封装的属性分别是什么含义?
参考下图:

- ordinal:字段的次序
- type:字段的类型
- name:字段的名称
- primaryKey:字段是否为主键
- column:字段在数据库中显示的名称
3. 对属性的操作
属性不是孤单的,我们通常对它进行相应的操作:
例如:学生小明的年龄是否大于18岁?
常见的操作:
=
<>
<
>
<=
>=
is null
is not null
like
between
in
对应的代码:

对属性的操作最终转变为:WhereCondition
如:

网友评论