コード例 #1
0
        // GET: CreateTable
        public ActionResult Index()
        {
            DataHydrator dataHydrator = new DataHydrator();

            IList<RelationsModel> AllRelationsWithNoTuples = dataHydrator.GetAllRelationModelFromDatabaseWithoutTuplesForView();

            return View(AllRelationsWithNoTuples);
        }
コード例 #2
0
        public ActionResult DetailsForTempRelation(string name)
        {
            DataHydrator dataHydrator = new DataHydrator();

            RelationObject tempTable = InternalDatabase.TempRelatinos;

            RelationsModel baseModel = dataHydrator.GetRelationModelFromTempRelatinoLazyLoaded(tempTable);

            RelationToDisplayAllInformationViewModel relationToDisplay = new RelationToDisplayAllInformationViewModel(baseModel.RelationAttributes,
                                                                                                                        baseModel.RelationsTuples,
                                                                                                                        baseModel.NameOfRelation);

            relationToDisplay.NameOfRelation = "*TEMPORARY";

            return View(relationToDisplay);
        }
コード例 #3
0
        // GET: Relation/Details/5
        public ActionResult Details(string name)
        {
            DataHydrator dataHydrator = new DataHydrator();

            RelationsModel baseModel = dataHydrator.GetRelationModelFromDatabaseLazyLoaded(name);

            RelationToDisplayAllInformationViewModel relationToDisplay = new RelationToDisplayAllInformationViewModel(baseModel.RelationAttributes,
                                                                                                                        baseModel.RelationsTuples,
                                                                                                                        baseModel.NameOfRelation);

            return View(relationToDisplay);
        }