public new void DeleteByMetaObjectId(int metaObjectId)
        {
            var searchContions = base.GetEntitiesByMetaObjectId(metaObjectId);

            TransactionHelper.Transaction(() =>
            {
                if (searchContions != null && searchContions.Any())
                {
                    //删除字段配置下的所有字段
                    foreach (var item in searchContions)
                    {
                        dbContext.Delete <SearchConditionAggregation>(t => t.SearchConditionId == item.Id);
                    }
                }
                //删除字段配置
                base.DeleteByMetaObjectId(metaObjectId);
            });
        }
コード例 #2
0
        public new void DeleteByMetaObjectId(int metaObjectId)
        {
            var fieldLists = base.GetEntitiesByMetaObjectId(metaObjectId);

            TransactionHelper.Transaction(() =>
            {
                if (fieldLists != null && fieldLists.Any())
                {
                    //删除字段配置下的所有字段
                    foreach (var item in fieldLists)
                    {
                        dbContext.Delete <FieldListMetaField>(t => t.FieldListId == item.Id);
                    }
                }
                //删除字段配置
                base.DeleteByMetaObjectId(metaObjectId);
            });
        }
 public void DeleteByMetaFieldId(int metaFieldId)
 {
     dbContext.Delete <FieldListAggregation>(t => t.MetaFieldId == metaFieldId);
 }
コード例 #4
0
 public void DeleteByMetaObjectId(int metaObjectId)
 {
     dbContext.Delete <TEntity>(t => t.MetaObjectId == metaObjectId);
 }
 public ResultModel Delete(int id)
 {
     dbContext.Delete <TEntity>(t => t.Id.Equals(id));
     return(ResultModel.Success());
 }
コード例 #6
0
 public ResultModel Delete(TEntity entity)
 {
     dbContext.Delete <TEntity>(entity);
     return(ResultModel.Success());
 }
 public Result <SearchConditionNode> Delete(int id)
 {
     dbContext.Delete <SearchConditionNode>(t => t.Id == id);
     return(Result <SearchConditionNode> .Success());
 }
コード例 #8
0
 public ResultModel Delete(int id)
 {
     dbContext.Delete <SearchConditionAggregation>(t => t.Id == id);
     return(ResultModel.Success());
 }
 public void DeleteByMetaFieldId(int metaFieldId)
 {
     dbContext.Delete <FormMetaField>(t => t.MetaFieldId == metaFieldId);
 }