页: 1 我仍然希望使用EF 4.0、的化chem模型,但我也希望第4.1号框架的预报和灵活性。
因此,在我的申请中,我从目前的EF4.0模式中添加了DbContext代号。
www.un.org/Depts/DGACM/index_spanish.htm 现在,我的问题是,我有哪些选择来证实我的DbSet(EF 4.1)模式,而没有它们被抹去?。
数据年限似乎在减少,因为每次都使用。 我更新了我的视觉模型,在我的所有修改中都做了总结。
- I have heard about partial classes, but that seems to be really messy.
- I don t really want to do validations on my controller.
- I want to make this scalable so I can easily transfer my classes from asp.net MVC to WPF and etc.
Is there a way to do this? Validation repository? Seperate validation layer? Validation inside the repository layers? Examples would be appreciated too.
请帮助我。 感谢: