ssteenkiste / nettiers

Automatically exported from code.google.com/p/nettiers
1 stars 0 forks source link

Mapping file not updated (patch attached) #370

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
***** What steps will reproduce the problem? *****

After re-generation the mapping file is not updated with new tables/view or 
columns.

My client wish to (eventually) incorporate a re-gen. within their continuous 
integration processes, therefore minimizing manual processes is a must.

***** What is the expected output? What do you see instead? *****

New tables, views and columns should be added to the mapping file to minimize 
the amount of manual work required.

Exising Xml nodes should not be affected by any changes.

***** What version of .netTiers and CodeSmith are you using? *****

.netTiers = 2.3.1
CodeSmith = 5.3.1

***** Please provide any additional information below. *****

I've attached revised template changes which are comprised of....

SchemaMapping/NetTiersMapInstance.Internal.cst

    Replaced existing Render method which now renders the template and returns an instance of NetTiers.NetTiersMap

TemplateLib/CommonSqlCode.cs

    Added NetTiers.NetTiersMap.Merge such that mapping file changes can be merged.
    Added NetTiers.NetTiersMap.Save to serialize and save mapping file.

NetTiers.cst

    Changed "Entity Mapping" region to incorporate the changes detailed above.

Original issue reported on code.google.com by d...@hypercode.co.uk on 15 Feb 2011 at 9:23

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by bniemyjski on 4 Mar 2011 at 8:10