Technical attribute VS Read only attribute
Created by Jerry Wang, last modified on Mar 28, 2014
Genil Model Editor里能针对每个field 设置其属性。
Technical field和read only field的区别:
1. 在调用bol entity的SET_PROPERTY时,框架会判断待修改的property是否是read only,如果是,直接返回。即read only field不能被SET_PROPERTY修改, 但是technical field可以。
2. 一般来说,如果一个field的值是由代码自动determine,例如guid,timestamp等等,这类field应该被设成technical field。Technical field更多的是出于技术方面的考虑,而read only field则更偏业务。可以参考Product 的设置: 所有的field在Genil model editor里都被设置成"Not defined", 这样可以在Genil 的实现里redefine:
Technical attribute VS Read only attribute相关推荐
- Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.
调试网站时,异常出现:Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive. S ...
- C# Attribute(中)——Attribute本质论
小序: 上篇里,我们把Attribute"粘"在类的成员方法上show了一把,让Attribute跟大家混了个脸儿熟.中篇里,我们将探讨"究竟什么是At ...
- 深入浅出Attribute (中)——Attribute本质论
深入浅出Attribute(中)--Attribute本质论 CSDN 刘铁猛 2007-06-04 小序: 上篇里,我们把Attribute"粘"在类的成员方法上show了一把, ...
- Attribute在.net编程中的应用
作者:niwalker 出处:csdn SqlCommandGenerator类的设计 SqlCommandGEnerator类的设计思路就是通过反射得到方法的参数,使用被SqlComma ...
- C#基础系列:实现自己的ORM(反射以及Attribute在ORM中的应用)
反射以及Attribute在ORM中的应用 一. 反射 什么是反射? 简单点吧,反射就是在运行时动态获取对象信息的方法,比如运行时知道对象有哪些属性,方法,委托等等等等. 反射有什么用呢? 反射不但让 ...
- [Step By Step]SAP HANA创建层次结构的属性视图(Hierarchy Attribute View)
在产品表中,数据是具有一定层次结构的 1. 在Content相应的package下面右键点击Attribute View,新建Attribute View 填写相关信息,注意:我们所建的依然是标准视图 ...
- 成功解决AttributeError: module ‘tornado.web‘ has no attribute ‘asynchronous‘
成功解决AttributeError: module 'tornado.web' has no attribute 'asynchronous' 目录 解决问题 解决思路 解决方法 解决问题 Attr ...
- 成功解决AttributeError: module 'cv2.cv2' has no attribute 'CV_CAP_PROP_FPS'和 'CV_CAP_PROP_FRAME_WIDTH'
成功解决AttributeError: module 'cv2.cv2' has no attribute 'CV_CAP_PROP_FPS'和 'CV_CAP_PROP_FRAME_WIDTH' 目 ...
- C# 中特性(Attribute)的使用简介
Attribute(特性) MSDN给出的定义: Attribute 类将预定义的系统信息或用户定义的自定义信息与目标元素相关联.目标元素可以是程序集.类.构造函数.委托.枚举.事件.字段.接口.方法 ...
最新文章
- 关于Socket通信客户端是否需要绑定端口号
- python实现树有多少种方法_教程 | 从头开始:用Python实现决策树算法
- haproxy keepalived_详解mycat+haproxy+keepalived搭建高可用负载均衡mysql集群
- linux rar安装
- 为WPF播放GIF伤神不?
- C语言试题九十之实现输入一行字符,分别统计出其中英文字母、空格、数字和其他字符的个数。
- 选购工业交换机时,工业交换机的IP等级多少比较合适?
- 前端学习(2248)git是怎么运作的
- 苹果发布 2017 年度应用榜单,你的 App 榜上有名吗?
- Spring-boot-2.1.X源码编译
- 增值税相关软件基本常识
- 网课搜题公众号接口怎么对接?最新接口-麦麦题
- Linux 文件的打包与压缩
- Qt C++招聘要求
- CSDN博客专家申请成功
- Java学习笔记:SQL数据排序
- 发票查验平台验证码识别
- 如何在手机上收发邮件?
- 微信小程序周报(第九期)-极乐科技
- 微信小程序以SpringBoot作为后端开发遇到的问题及解决思路总结