How to change the database structure
- OCR uses
DataAccessa - SQL user's
ZonalOcrDb.edmx.sqlCE-databaseupdatestoredinitialoncreationthequeriescomputer - to persist
ZonalOcrDb.edmxtemplates, - etc. need
<edmx:StorageModels>If->you<EntityType>to - make to
<edmx:ConceptualModels>a->change<EntityType>the - structure of
<EntitySetMapping>the - (tables, columns, or whatever) follow these instructions.
Update
modelstheinUpdateDbTool/EntityModel/ UpdateDbToolproject
-
UpdateDbManager.cs
-
create an alter statement
-
create a query that determines if the database is at the new version
-
create a function that calls your alter statement(s)
-
add a version that that calls your previous function
-
This tool will update the user's database when they install the new version of Zonal. To test your changes, set UpdateDbTool as the startup project in Visual Studio and run it. Probably need to be in admin mode
- Update copy of ZonalOcrDb.sdf
Update the ZonalOCR project
-
DataAccess
-
ZonalOcrDb.edmx.sql - update initial creation queries
-
ZonalOcrDb.edmx
-
<edmx:StorageModels> -> <EntityType>
-
<edmx:ConceptualModels> -> <EntityType>
-
<EntitySetMapping>
-
-
Update models in /EntityModel/
-
-
Zonal
- file-based
- fields,