Esempio n. 1
0
        public EraseFieldData(ErasePiiObject erasePiiObject)
        {
            _crmClientServiceClient    = erasePiiObject.ClientContext;
            _fieldCollectionDictionary = erasePiiObject.FieldCollection;
            _fieldName = erasePiiObject.FieldName;
            _fieldType = erasePiiObject.FieldType;
            _entity    = erasePiiObject.Entity;

            CheckFieldType(_fieldType);
        }
Esempio n. 2
0
        public EraseRecordData(ErasePiiObject erasePiiObject)
        {
            _crmClientServiceClient = erasePiiObject.ClientContext;
            _entity           = erasePiiObject.Entity;
            _entityCollection = erasePiiObject.EntityCollection;

            if (_entityCollection.Entities.Count > 0)
            {
                BulkDeleteEntityRecords();
            }
        }
Esempio n. 3
0
        public ErasePiiObject Build()
        {
            var erasePiiObject = new ErasePiiObject
            {
                EntityCollection = _entityCollection,
                EntityName       = _entityName,
                Entity           = _entity,
                FieldType        = _fieldType,
                FieldName        = _fieldName,
                ClientContext    = _clientContext,
                FieldCollection  = _fieldCollectionDictionary
            };

            return(erasePiiObject);
        }