Sample code on .Net about Factory Pattern and System Admin SDE