adamfoneil / Dapper.CX

A Crud library based on Dapper
MIT License
8 stars 1 forks source link

need a (more straightforward) way to create change tracking tables #26

Closed adamfoneil closed 3 years ago

adamfoneil commented 4 years ago

There's a method LoggedChangeTracker.InitializeAsync that does create tables, and it depends on ISqlObjectCreator, which is using AO.ModelSync.Library package dependency. This is a bit roundabout and undiscoverable. I don't want to add a model sync dependency, however. There might be an opportunity to integrate into Model Sync app. It might make sense to hardcode the SQL for these tables, but not sure

adamfoneil commented 4 years ago

I added AddChangeTracking, used in Sample App here. You have to add Model Sync dependency separately -- note the new DataModel(). I'm not wild about that, and might add Model Sync as built-in dependency