Added SPMetal code for generating Delegations