// GET: CreateTable public ActionResult Index() { DataHydrator dataHydrator = new DataHydrator(); IList<RelationsModel> AllRelationsWithNoTuples = dataHydrator.GetAllRelationModelFromDatabaseWithoutTuplesForView(); return View(AllRelationsWithNoTuples); }
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); }
// 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); }