(Cannot ?) override column attributes at runtime
See original GitHub issueIf for some reason, you need to change the mapping for a table for one operation only, you can call something like db.GetTable<ModelBase>().TableName('table1')
. However, there is no obvious way to do something like db.GetTable<ModelBase>().ColumName(x => x.Id, 'idColumn1')
, let alone override things like IsPrimaryKey
.
I think an API similar to the one for tables would be nice, but in the meantime, is there any way to do the equivalent now?
Issue Analytics
- State:
- Created 7 years ago
- Comments:11 (11 by maintainers)
Top Results From Across the Web
Set or change Attribute's properties or fields at runtime in ...
The approach that looks logical is to use another attribute that holds the string, which should be built using the names of the...
Read more >Hibernate Tips: How to override column mappings of a ...
You can use the @AttributeOverride annotation on the Book entity to override the mapping of each attribute defined by the Publication class. You...
Read more >Overriding Column Definition With @AttributeOverride
@AttributeOverride's Attributes. The annotation contains two mandatory attributes: name – field name of an included entity; column – column ...
Read more >Solved: Dynamically changing column attributes in the tabl...
Solved: Hi, I have a table visualization with attributes A,B,C,D and E let's say. ... Since we cant dynamically change the column header...
Read more >Column attributes refresh - Ignition
Each time when I overwrite data, column attributes remain same (outdated), and update only when I enter table customizer and press ok.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Are you suggesting I use
MappingSchema.Default.GetFluentMappingBuilder().Entity<ModelBase>()
? Doesn’t that edit the configuration globally? Or is there a way to clone and editMappingSchema
s, and use them for table creation?Thanks!