Beispiel #1
0
        public Table View(Type viewType)
        {
            var tn = this.Settings.TypeAttribute <TableNameAttribute>(viewType);

            if (tn?.SchemaName == "sys")
            {
                return(ViewBuilder.NewView(viewType));
            }

            return(Views.GetOrCreate(viewType, ViewBuilder.NewView(viewType)));
        }
Beispiel #2
0
        public Table View(Type viewType)
        {
            var tn = this.Settings.TypeAttribute <CacheViewMetadataAttribute>(viewType);

            if (tn != null)
            {
                return(Views.GetOrCreate(viewType, ViewBuilder.NewView(viewType)));
            }

            return(ViewBuilder.NewView(viewType));
        }