We have an Entity Framework model that is used by two different silverlight applications. The validation rules are very similar in the two contexts, but differ slightly.
For example, a regular user in one of the applications cannot input time that is in the future, but an administrator in the other application can put time that is in the future.
How would you handle designing this application? Two ideas we came up with:
- Creating two entirely separate models, so that each can be independent
- Share the same model, but put a "Context" property on our base Entity class, so that the validation rules can validate differently where necessary.