You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
想基于FreesSql实现一个类似abp框架中的ObjectExtensionManager的功能,用来实现存储实体的一些额外数据但不用更改实体(项目上开发不能更改实体,但希望能够添加一些新的字段),这些额外的数据存储在一个Dictionary中,Dictionary的中的key值对应数据库中具体的字段名称,初步想法是实现一个ExtraPropertyAttribute,定义实体时添加:
然后再Aop.ConfigEntityProperty的事件中进行处理,不知道这样是否能够实现,或者有其他更好的实现方式?
Beta Was this translation helpful? Give feedback.
All reactions