There are 3 webpages Employee.aspx, EmpSal.aspx, EmpQual.aspx.
有3个网页Employee.aspx,EmpSal.aspx,EmpQual.aspx。
The Employee details can be found only on a single table with the columns EmpId,EmpName,EmpBasicSal,EmpGrossSal,EmpQual,EmpDesgn.
Employee详细信息只能在包含EmpId,EmpName,EmpBasicSal,EmpGrossSal,EmpQual,EmpDesgn列的单个表中找到。
The Employee.aspx page should display EmpId, EmpName, the EmpSal.aspx page should display EmpId, EmpBasicSal, EmpGrossSal and the EmpQual.aspx page should display EmpQual, EmpDesgn.
Employee.aspx页面应显示EmpId,EmpName,EmpSal.aspx页面应显示EmpId,EmpBasicSal,EmpGrossSal和EmpQual.aspx页面应显示EmpQual,EmpDesgn。
Which design pattern can be used to create Entity, Business and DAE layer for this scenario?
哪种设计模式可用于为此方案创建实体,业务和DAE层?
There is a condition such that Business layer should not be altered if any new columns is added in the future.
有一个条件是,如果将来添加任何新列,则不应更改Business层。
Please help me to know the Perfect Design pattern
请帮助我了解完美设计模式
class Employee
{
}
1 个解决方案
#1
-1
Have a look at the Builder pattern which is a creational pattern similar to the Factory pattern but gives you more flexibility in the construction process and you also have more control over customization of the concrete types. A lot of code generators use this pattern.
看看Builder模式,它是一种类似于工厂模式的创建模式,但在构造过程中为您提供了更大的灵活性,您还可以更好地控制具体类型的自定义。很多代码生成器都使用这种模式。
#1
-1
Have a look at the Builder pattern which is a creational pattern similar to the Factory pattern but gives you more flexibility in the construction process and you also have more control over customization of the concrete types. A lot of code generators use this pattern.
看看Builder模式,它是一种类似于工厂模式的创建模式,但在构造过程中为您提供了更大的灵活性,您还可以更好地控制具体类型的自定义。很多代码生成器都使用这种模式。