locked
How to stop MySQL.Data Entityframework to delete underscore from field names while scaffolding RRS feed

  • Question

  • User283528319 posted

    Hi all,

    I am trying to scaffold an existant MySQL <g class="gr_ gr_38 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" id="38" data-gr-id="38">db</g> to ORM as described here

    https://dev.mysql.com/doc/connector-net/en/connector-net-entityframework-core-scaffold-example.html

    however, I can not stop the <g class="gr_ gr_41 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling" id="41" data-gr-id="41">mechanism</g> to change field names from this; raporu_cikartan_lab to this; RaporuCikartanLab

    Normally it would be great (I like the second name convention "RaporuCikartanLab") however after that system cannot find those fields in the table when I try to reach them via <g class="gr_ gr_39 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" id="39" data-gr-id="39">entityframework</g>.

    Where can be the problem and how can I solve this?

    Saturday, January 26, 2019 7:34 AM

Answers

  • User283528319 posted

    There is no need for it if you don't accidentally delete  protected override void OnModelCreating(ModelBuilder modelBuilder) function (<g class="gr_ gr_50 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del" id="50" data-gr-id="50">wich</g> act as a mapper) like me :)

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, January 26, 2019 8:49 PM