Update Database From Model Wizard - Overview

文章推薦指數: 80 %
投票人數:10人

This article is relevant to entity models that utilize the deprecated Visual Studio integration of Telerik Data Access. The current documentation of the Data ... Resources DataAccesshasbeendiscontinued.Pleaserefertothispageformoreinformation. HomeVisualDesignerAndToolsDEPRECATEDFeatureReferenceToolsUpdateDatabaseFromModelWizardUpdateDatabaseFromModelWizard-Overview UpdateDatabaseFromModelWizard-Overview ThisarticleisrelevanttoentitymodelsthatutilizethedeprecatedVisualStudiointegrationofTelerikDataAccess.ThecurrentdocumentationoftheDataAccessframeworkisavailablehere. TheUpdateDatabasefromModelwizardallowsyoutogenerateschemadefinitionscriptorschemamigrationscriptforcreating/migratingadatabasefromanexistingconceptualmodel.Thewizardallowsyoutodoconceptualmodelingfirstandthentocreateadatabasethatsupportsthedomainmodel. StartingtheWizard TheUpdateDatabasefromModelwizardcouldbestartedinanyofthefollowingways: Right-clicktherootnodeintheModelSchemaExplorerandselectUpdateDatabasefromModel Right-clicktherootnodeintheModelObjectExplorerandselectUpdateDatabasefromModel Right-clickonanemptyareaintheVisualDesignerandselectUpdateDatabasefromModel TheUpdateDatabasefromModelwizardrequiresthefollowingtorunsuccessfully: Avaliddomainmodel. PermissiontoaddfilestothecurrentVisualStudioproject.Uponcompletion,thewizardaddsan.sqlfiletotheproject.Thisfilecontainsthescriptforcreatingthedatabase. Uponcompletion,theUpdateDatabasefromModelwizarddoesthefollowing: GeneratesanSQLscriptthatcanbeexecutedtocreateadatabase.Thereisanoptionallowingyoutosavethescriptasan.sqlfile. Addsconnectionstringinformationtoyourconfigurationfile(ifthesamedoesnotexist). Inthissection: SetupDatabaseConnection-ProvidesUIreferencefortheSetupDatabaseConnectiondialog. SelectChangesPage-ProvidesUIreferencefortheSelectChangesPage. SummaryPage-ProvidesUIreferencefortheSummaryPage. Relatedtopics: DatabaseFirstScenario Howto:CreateaNewDatabasefromaModel Howto:UpdateanExistingDatabaseSchema Howto:UpdateaModelfromanExistingDatabase TermsofUse ProductImprovementProgram ContactUs Copyright©2017,ProgressSoftwareCorporationand/oritssubsidiariesoraffiliates.AllRightsReserved.



請為這篇文章評分?