partial         void Clients_Validate(Client entity, EntitySetValidationResultsBuilder results)
        {
            int frequency = 0;

            // Check if sponsor relationship has only 1 primary contact item
            foreach (SponsorRelationship s in entity.SponsorRelationship)
                if (s.IsPrimary == true)
                    frequency++;

            //To-do: Add a resource file with BUSINESS RULE validation dictionary thats hold ALL constant string messages. P2 S1
            if ( frequency == 0 )
               results.AddEntityError("[Business Rule] A Client must have a sponsor list with one sponsor as primary contact. Please add only one sponsor with a primary contact.");
            else if ( frequency >= 2)
               results.AddEntityError("[Business Rule] A Client may have more than one sponsors relationship but must have only one sponsor as primary contact with only.  Please ensure that one sponsor exist with column 'Is Primary' with only one 'true' value.");
        }
partial         void Clients_Updating(Client entity)
        {
            entity.UpdatedTime = DateTime.Now;
            entity.UpdatedBy = Application.User.Name;
        }
partial         void Clients_Updated(Client entity)
        {
        }