自动生成的 web.g.s 实体从 ComplexObject 继承,原因
实体层poco,没有定义Attribute标签,
给实体Models层添加 System.ComponentModel.DataAnnotations 引用,
给主键添加 [Key]标签,
重新生成SL UI 层,这时web.g.s 中的实体从 Entity 继承了。
自动生成的 web.g.s 实体从 ComplexObject 继承,原因
实体层poco,没有定义Attribute标签,
给实体Models层添加 System.ComponentModel.DataAnnotations 引用,
给主键添加 [Key]标签,
重新生成SL UI 层,这时web.g.s 中的实体从 Entity 继承了。