Exemple #1
0
        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);
        }
Exemple #2
0
 public void DropView(Domain.Entity entity)
 {
     _metadataProvider.DropView(entity);
 }
Exemple #3
0
 public void DropTable(Domain.Entity entity)
 {
     _metadataProvider.DropTable(entity);
 }
Exemple #4
0
 public void CreateTable(Domain.Entity entity, List <Domain.Attribute> defaultAttributes)
 {
     _metadataProvider.CreateTable(entity, defaultAttributes);
 }
Exemple #5
0
        public void CreateView(Domain.Entity entity)
        {
            var defaultAttributes = _defaultAttributeProvider.GetSysAttributes(entity);

            _metadataProvider.AlterView(entity, defaultAttributes, _defaultAttributeProvider.GetSysAttributeRelationShips(entity, defaultAttributes));
        }