예제 #1
0
        public override void BeforeDelete()
        {
            base.BeforeDelete();
            ORM <SimpleFlowStructure> orm = new ORM <SimpleFlowStructure>();

            orm.Delete(new WhereCondition[]
            {
                new FieldWhereCondition("data_type_name", QueryMatchType.Equals, CRMEntityName),
                new FieldWhereCondition("data_type_name_space", QueryMatchType.Equals, GetCrmEntityNamespace())
            });

            ORM <Folder> folderOrm = new ORM <Folder>();

            folderOrm.Delete(new WhereCondition[] {
                new FieldWhereCondition("folder_id", QueryMatchType.Equals, GetCrmEntityFolderId())
            });
        }