New answers tagged asp.net
2
votes
Implementing Generic Enumeration Classes in Domain Layer
You can simplify your work by caching the enumerations, and reuse them. This means,GetAll will call the reflection once on every unique type, which would improve ...
2
votes
Accepted
Implementing Generic Enumeration Classes in Domain Layer
Thanks to @PeterCsala’s answer, I was able to come up with a better solution that doesn’t require using an interface with static members.
This approach is both cleaner and simpler.
Thank you, @...
4
votes
Implementing Generic Enumeration Classes in Domain Layer
I would rather go with extension methods to keep both the base and the derived classes as clean as possible.
Base
I've replaced the private sets to ...
Top 50 recent answers are included
Related Tags
asp.net × 455c# × 395
.net × 45
entity-framework × 37
sql × 32
vb.net × 29
asp.net-mvc × 28
javascript × 25
mvc × 23
performance × 21
asp.net-mvc-4 × 19
sql-server × 18
jquery × 16
linq × 14
asp.net-core × 14
asp.net-web-api × 14
beginner × 13
html × 11
design-patterns × 11
security × 10
validation × 10
asp.net-mvc-3 × 10
database × 9
object-oriented × 8
authentication × 8