design-patterns
public T Add<T>(T entity) | I have three types of collections, how to know which to add the entity?
I have an interface IRepository to abstract my repository: Fake repository public class Repository : IRepository[详细]
2023-04-11 12:24 分类:问答Pattern to handle "dynamic enums" that a user could modify (programming language agnostic)
I always face this problem and every time I face this I find a different solutio开发者_高级运维n that doesn\'t satisfact me. This situation doesn\'t fit a specific language, but involves a database.[详细]
2023-04-11 11:26 分类:问答Is good to return a generic object with all important returning values from a facade signature? [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this po[详细]
2023-04-11 07:08 分类:问答How do you create a function with code blocks that wrap around commonly used code?
I have a do...while loop and a try...catch block that wraps around database centric code. The do...while and try...catch serves the purpose of preventing transaction deadlocks, and it does so very wel[详细]
2023-04-11 05:20 分类:问答How to remove decorators out of order in C#
I\'m trying to implement a simple App that let me choose extras in a car. Each extra item is a decorator for a base class Car.[详细]
2023-04-11 02:58 分类:问答How to make this "loop" pattern on wordpress?
Is anybody know how to make loop with this pattern in wordpress? <div class=\"row\"> <div class=\"post1\">...</div>[详细]
2023-04-11 02:57 分类:问答Object Model for complex Calculator [closed]
Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing th[详细]
2023-04-11 01:52 分类:问答Up-to-date Software Design Resources [closed]
Closed. This question is seeking recommendations for books, tools, software libraries, and more. It does not meet Stack Overflow guidelines. It is not currently accepting answers.[详细]
2023-04-11 01:36 分类:问答three tier and MVP pattern in shopping website
i\'m creating a shopping website using c# and asp.net and i want to use MVP pattern inside of three tier architecture, specifically in the presentation layer.[详细]
2023-04-10 23:21 分类:问答What do you do when you have Rich Models?
I\'m working with existing code in a project which has rich models all over the place (instead of POCOs). Basically, is there any good way to mix rich models and ViewModels without repeating code?[详细]
2023-04-10 23:15 分类:问答