public void AlterView(Domain.Entity entity) { //不从缓存获取,这里要读取未提交的记录 var attributes = _attributeFinder.Query(x => x.Where(f => f.EntityId == entity.EntityId)); var relationShips = _relationShipFinder.Query(x => x.Where(f => f.ReferencingEntityId == entity.EntityId)); _metadataProvider.AlterView(entity, attributes, relationShips); }
public void DropView(Domain.Entity entity) { _metadataProvider.DropView(entity); }
public void DropTable(Domain.Entity entity) { _metadataProvider.DropTable(entity); }
public void CreateTable(Domain.Entity entity, List <Domain.Attribute> defaultAttributes) { _metadataProvider.CreateTable(entity, defaultAttributes); }
public void CreateView(Domain.Entity entity) { var defaultAttributes = _defaultAttributeProvider.GetSysAttributes(entity); _metadataProvider.AlterView(entity, defaultAttributes, _defaultAttributeProvider.GetSysAttributeRelationShips(entity, defaultAttributes)); }