Teddy
Teddy

Reputation: 1417

How to perform status validation for lots of Linq to Sql Objects

I would like to perform status validation for maybe hundreds or thousands of linq to sql objects. For example, only Status A & B can change to Status C, then C can change to D, ...

Considering performance and scalability, what is the best solution?
Will "DetectChanges" suitable for my scenario?

Upvotes: 1

Views: 107

Answers (1)

Yusubov
Yusubov

Reputation: 5843

What you need is a simple implementation of state machine concept in your code.

As it is fairly known concept in software engineering, i will just provide usefull resources with examples to follow and implement this concept.

Here you are the resources:

Upvotes: 1

Related Questions