dazinator / CrmAdo

An ADO.NET Provider for Dynamics Crm
6 stars 4 forks source link

Refactoring to introduce seperate classes for each OrgCommand type #55

Closed dazinator closed 9 years ago

dazinator commented 9 years ago

Currently, a Visitor class builds an IOrgCommand object, which is passed back to the executor which then does a switch on the CommandType and processes it differently.

Change this, such that the IOrgCommand instance has different derivations, and then simplify the executor such that it just passes control to the derived IOrgCommand instance to have it executed.